From b3d9bcb9cb91d78616f596fb9dc52bc5e0c2b9ba Mon Sep 17 00:00:00 2001 From: Yanislav Igonin Date: Sun, 17 Oct 2021 11:11:52 +0300 Subject: [PATCH] feat: rename migration --- migrations/000001_init.down.sql | 2 ++ migrations/{1-init.sql => 000001_init.up.sql} | 6 ------ 2 files changed, 2 insertions(+), 6 deletions(-) create mode 100644 migrations/000001_init.down.sql rename migrations/{1-init.sql => 000001_init.up.sql} (93%) 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