diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2021-08-24 23:05:08 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2021-08-24 23:05:08 +0200 |
commit | 0ba9752b0211c9add44ffb652e99444f4b4e36f3 (patch) | |
tree | b8347106c95f39dd2195aaab79d35f9939eef296 | |
parent | 94c4261d7733589a5e5616489ed3d3e9562a9e5b (diff) | |
download | ramaskrik-social-0ba9752b0211c9add44ffb652e99444f4b4e36f3.tar.gz ramaskrik-social-0ba9752b0211c9add44ffb652e99444f4b4e36f3.tar.bz2 ramaskrik-social-0ba9752b0211c9add44ffb652e99444f4b4e36f3.zip |
Add old migration to create event table.
-rw-r--r-- | migrations/2020-08-25-102403_add_event_table/down.sql | 2 | ||||
-rw-r--r-- | migrations/2020-08-25-102403_add_event_table/up.sql | 8 |
2 files changed, 10 insertions, 0 deletions
diff --git a/migrations/2020-08-25-102403_add_event_table/down.sql b/migrations/2020-08-25-102403_add_event_table/down.sql new file mode 100644 index 0000000..1d3e072 --- /dev/null +++ b/migrations/2020-08-25-102403_add_event_table/down.sql @@ -0,0 +1,2 @@ +-- Drop the event table to revert. +DROP TABLE event; diff --git a/migrations/2020-08-25-102403_add_event_table/up.sql b/migrations/2020-08-25-102403_add_event_table/up.sql new file mode 100644 index 0000000..16deae0 --- /dev/null +++ b/migrations/2020-08-25-102403_add_event_table/up.sql @@ -0,0 +1,8 @@ +-- The event table holds information about the event. +-- This is typically used on the main website, page titles +-- etc. +CREATE TABLE event ( + id SERIAL PRIMARY KEY, + name varchar(64) NOT NULL, + description text +) |