-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert column
FOREIGN KEY
s in CREATE TABLE
Convert inline `FOREIGN KEY` values in `CREATE TABLE` statements like this: ```sql CREATE TABLE foo(a int REFERENCES bar(b)) ``` into `OpCreateTable` operations like this: ```json [ { "create_table": { "columns": [ { "name": "a", "nullable": true, "references": { "column": "b", "name": "foo_a_fkey", "on_delete": "NO ACTION", "table": "bar" }, "type": "int" } ], "name": "foo" } } ] ```
- Loading branch information
1 parent
042257a
commit 68ef5c4
Showing
3 changed files
with
154 additions
and
8 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 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