mirror of
https://github.com/yanislav-igonin/micrach
synced 2024-12-22 22:32:33 +03:00
feat: rename migration
This commit is contained in:
parent
993ca5e614
commit
b3d9bcb9cb
2
migrations/000001_init.down.sql
Normal file
2
migrations/000001_init.down.sql
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
DROP TABLE files;
|
||||||
|
DROP TABLE posts;
|
@ -31,9 +31,3 @@ CREATE TABLE files
|
|||||||
created_at TIMESTAMP DEFAULT NOW() NOT NULL,
|
created_at TIMESTAMP DEFAULT NOW() NOT NULL,
|
||||||
FOREIGN KEY (post_id) REFERENCES posts (id)
|
FOREIGN KEY (post_id) REFERENCES posts (id)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-- DOWN
|
|
||||||
DROP TABLE files;
|
|
||||||
DROP TABLE posts;
|
|
Loading…
Reference in New Issue
Block a user