diff --git a/migrations/000001_init.down.sql b/migrations/000001_init.down.sql new file mode 100644 index 0000000..f79db12 --- /dev/null +++ b/migrations/000001_init.down.sql @@ -0,0 +1,2 @@ +DROP TABLE files; +DROP TABLE posts; diff --git a/migrations/1-init.sql b/migrations/000001_init.up.sql similarity index 93% rename from migrations/1-init.sql rename to migrations/000001_init.up.sql index 4193ae3..a100acc 100644 --- a/migrations/1-init.sql +++ b/migrations/000001_init.up.sql @@ -31,9 +31,3 @@ CREATE TABLE files created_at TIMESTAMP DEFAULT NOW() NOT NULL, FOREIGN KEY (post_id) REFERENCES posts (id) ); - - - --- DOWN -DROP TABLE files; -DROP TABLE posts; \ No newline at end of file