-
Notifications
You must be signed in to change notification settings - Fork 0
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 #44 from ginkgobioworks/separate-operations
Separate operation table POC
- Loading branch information
Showing
17 changed files
with
388 additions
and
126 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
This file was deleted.
Oops, something went wrong.
Empty file.
File renamed without changes.
Empty file.
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,28 @@ | ||
CREATE TABLE operation_state ( | ||
db_uuid TEXT PRIMARY KEY NOT NULL, | ||
operation_id INTEGER, | ||
FOREIGN KEY(operation_id) REFERENCES operation(id) | ||
) STRICT; | ||
|
||
CREATE TABLE operation ( | ||
id INTEGER PRIMARY KEY NOT NULL, | ||
db_uuid TEXT NOT NULL, | ||
parent_id INTEGER, | ||
collection_name TEXT NOT NULL, | ||
change_type TEXT NOT NULL, | ||
change_id INTEGER NOT NULL, | ||
FOREIGN KEY(parent_id) REFERENCES operation(id) | ||
) STRICT; | ||
|
||
CREATE TABLE file_addition ( | ||
id INTEGER PRIMARY KEY NOT NULL, | ||
file_path TEXT NOT NULL, | ||
file_type TEXT NOT NULL | ||
) STRICT; | ||
|
||
CREATE TABLE operation_summary ( | ||
id INTEGER PRIMARY KEY NOT NULL, | ||
operation_id INTEGER NOT NULL, | ||
summary TEXT NOT NULL, | ||
FOREIGN KEY(operation_id) REFERENCES operation(id) | ||
) STRICT; |
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.