Skip to content

Commit

Permalink
Update migrations/2021-04-24-115720_remove_version_authors/down.sql
Browse files Browse the repository at this point in the history
Co-authored-by: Pietro Albini <[email protected]>
  • Loading branch information
Rustin170506 and pietroalbini authored Apr 30, 2021
1 parent 32ca48e commit 70c8e2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions migrations/2021-04-24-115720_remove_version_authors/down.sql
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
CREATE TABLE version_authors(
id SERIAL NOT NULL CONSTRAINT version_authors_pkey PRIMARY KEY,
version_id INTEGER NOT NULL CONSTRAINT fk_version_authors_version_id REFERENCES versions ON DELETE CASCADED,
version_id INTEGER NOT NULL CONSTRAINT fk_version_authors_version_id REFERENCES versions ON DELETE CASCADE,
name VARCHAR NOT NULL
);

CREATE INDEX index_version_authors_version_id ON version_authors (version_id);
CREATE INDEX index_version_authors_version_id ON version_authors (version_id);

0 comments on commit 70c8e2a

Please sign in to comment.