Rename migration according to sqlx convention
This commit is contained in:
parent
1f66fe0299
commit
523b82632f
1 changed files with 0 additions and 0 deletions
|
|
@ -1,19 +0,0 @@
|
|||
CREATE TABLE commits (
|
||||
hash TEXT NOT NULL PRIMARY KEY,
|
||||
new INT NOT NULL DEFAULT 1,
|
||||
tracked INT NOT NULL DEFAULT 0
|
||||
) STRICT;
|
||||
|
||||
CREATE TABLE commit_links (
|
||||
parent TEXT NOT NULL,
|
||||
child TEXT NOT NULL,
|
||||
PRIMARY KEY (parent, child),
|
||||
FOREIGN KEY (parent) REFERENCES commits (hash) ON DELETE CASCADE,
|
||||
FOREIGN KEY (child) REFERENCES commits (hash) ON DELETE CASCADE
|
||||
) STRICT;
|
||||
|
||||
CREATE TABLE tracked_refs (
|
||||
name TEXT NOT NULL PRIMARY KEY,
|
||||
hash TEXT NOT NULL,
|
||||
FOREIGN KEY (hash) REFERENCES commits (hash) ON DELETE CASCADE
|
||||
) STRICT;
|
||||
Loading…
Add table
Add a link
Reference in a new issue