diff options
Diffstat (limited to 'migrations/2020-10-29-140956_create_images')
-rw-r--r-- | migrations/2020-10-29-140956_create_images/down.sql | 2 | ||||
-rw-r--r-- | migrations/2020-10-29-140956_create_images/up.sql | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/migrations/2020-10-29-140956_create_images/down.sql b/migrations/2020-10-29-140956_create_images/down.sql new file mode 100644 index 0000000..9ba02d4 --- /dev/null +++ b/migrations/2020-10-29-140956_create_images/down.sql @@ -0,0 +1,2 @@ +-- This file should undo anything in `up.sql` +DROP TABLE images diff --git a/migrations/2020-10-29-140956_create_images/up.sql b/migrations/2020-10-29-140956_create_images/up.sql new file mode 100644 index 0000000..c047e10 --- /dev/null +++ b/migrations/2020-10-29-140956_create_images/up.sql @@ -0,0 +1,5 @@ +-- Your SQL goes here +CREATE TABLE images ( + id SERIAL PRIMARY KEY NOT NULL, + name VARCHAR NOT NULL UNIQUE +) |