about summary refs log tree commit diff
path: root/server/migrations/2021-01-12-171443_create_links/up.sql
diff options
context:
space:
mode:
Diffstat (limited to 'server/migrations/2021-01-12-171443_create_links/up.sql')
-rw-r--r--server/migrations/2021-01-12-171443_create_links/up.sql4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/migrations/2021-01-12-171443_create_links/up.sql b/server/migrations/2021-01-12-171443_create_links/up.sql
new file mode 100644
index 0000000..17e3f92
--- /dev/null
+++ b/server/migrations/2021-01-12-171443_create_links/up.sql
@@ -0,0 +1,4 @@
+CREATE TABLE links (
+    hash CHAR(3) PRIMARY KEY,
+    url VARCHAR(2048) NOT NULL
+);