-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework various forms and integrate type metadata into forms
This is done by extending the existing form config system, now called field hints, which is integrated into various action builders for editing and saving forms.
- Loading branch information
Showing
143 changed files
with
8,190 additions
and
1,055 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
BEGIN TRANSACTION; | ||
|
||
CREATE TABLE entity_type_meta( | ||
entity_type VARCHAR(50) NOT NULL PRIMARY KEY, | ||
name VARCHAR(100) NOT NULL, | ||
description TEXT, | ||
created TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
updated TIMESTAMP | ||
); | ||
|
||
CREATE INDEX entity_type_meta_entity_type ON entity_type_meta(entity_type); | ||
|
||
CREATE TABLE field_meta( | ||
entity_type VARCHAR(50) NOT NULL, | ||
id VARCHAR(50) NOT NULL, | ||
name VARCHAR(100) NOT NULL, | ||
description TEXT, | ||
usage VARCHAR(50), | ||
category VARCHAR(50), | ||
default_val TEXT, | ||
see_also TEXT[], | ||
created TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
updated TIMESTAMP, | ||
PRIMARY KEY (entity_type, id), | ||
CONSTRAINT field_meta_entity_type | ||
FOREIGN KEY (entity_type) | ||
REFERENCES entity_type_meta (entity_type) | ||
ON DELETE CASCADE | ||
ON UPDATE CASCADE | ||
); | ||
|
||
CREATE INDEX field_meta_entity_type ON field_meta(entity_type); | ||
CREATE INDEX field_meta_id ON field_meta(id); | ||
|
||
COMMIT; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.