diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2020-10-29 15:33:39 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2020-11-03 15:58:55 +0100 |
commit | 19ac840760f7f0d703cc50da8b3b0fdd88d5913f (patch) | |
tree | 7b93c74940a33fba1f441b191d7ce0a7042fa176 /migrations/2020-10-29-141904_create_endpoints | |
parent | 5ef71187792cb05c2834f8ff104b1ebd0c5c00b0 (diff) |
Add migrations for creating all tables
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'migrations/2020-10-29-141904_create_endpoints')
-rw-r--r-- | migrations/2020-10-29-141904_create_endpoints/down.sql | 2 | ||||
-rw-r--r-- | migrations/2020-10-29-141904_create_endpoints/up.sql | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/migrations/2020-10-29-141904_create_endpoints/down.sql b/migrations/2020-10-29-141904_create_endpoints/down.sql new file mode 100644 index 0000000..930227d --- /dev/null +++ b/migrations/2020-10-29-141904_create_endpoints/down.sql @@ -0,0 +1,2 @@ +-- This file should undo anything in `up.sql` +DROP TABLE endpoints diff --git a/migrations/2020-10-29-141904_create_endpoints/up.sql b/migrations/2020-10-29-141904_create_endpoints/up.sql new file mode 100644 index 0000000..b14c176 --- /dev/null +++ b/migrations/2020-10-29-141904_create_endpoints/up.sql @@ -0,0 +1,5 @@ +-- Your SQL goes here +CREATE TABLE endpoints ( + id SERIAL PRIMARY KEY NOT NULL, + name VARCHAR NOT NULL UNIQUE +) |