-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #100 from lsst/tickets/DM-45938
DM-45938: Add support for generating IDs on data model objects
- Loading branch information
Showing
7 changed files
with
166 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Added automatic ID generation for objects in Felis schemas when the `--id-generation` flag is included on the command line. | ||
This is supported for the `create` and `validate` commands. | ||
|
||
Also added a Schema validator that checks if index names are unique. |
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 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,23 @@ | ||
name: test_id_generation | ||
description: Test schema for id generation. | ||
tables: | ||
- name: test_table | ||
primaryKey: "#test_table.test_column1" | ||
mysql:engine: MyISAM | ||
columns: | ||
- name: test_column1 | ||
datatype: int | ||
description: Test column. | ||
- name: test_column2 | ||
datatype: string | ||
description: Test column. | ||
length: 30 | ||
indexes: | ||
- name: test_index | ||
columns: | ||
- test_column1 | ||
constraints: | ||
- name: test_constraint | ||
"@type": Unique | ||
columns: | ||
- test_column2 |
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