aboutsummaryrefslogtreecommitdiff
path: root/migrations/2021-05-13-001536_links
diff options
context:
space:
mode:
authorFuwn <[email protected]>2021-05-12 23:48:04 -0700
committerFuwn <[email protected]>2021-05-12 23:48:04 -0700
commitc7a282bd3f96c0e3cc0807aabd5b7104df6effc9 (patch)
tree64818c0add5762ba1ae83c8d9e7aa7bdb605f6f2 /migrations/2021-05-13-001536_links
downloadlime-main.tar.xz
lime-main.zip
feat: :star:HEADmain
Diffstat (limited to 'migrations/2021-05-13-001536_links')
-rw-r--r--migrations/2021-05-13-001536_links/down.sql1
-rw-r--r--migrations/2021-05-13-001536_links/up.sql7
2 files changed, 8 insertions, 0 deletions
diff --git a/migrations/2021-05-13-001536_links/down.sql b/migrations/2021-05-13-001536_links/down.sql
new file mode 100644
index 0000000..72bbc99
--- /dev/null
+++ b/migrations/2021-05-13-001536_links/down.sql
@@ -0,0 +1 @@
+DROP TABLE links;
diff --git a/migrations/2021-05-13-001536_links/up.sql b/migrations/2021-05-13-001536_links/up.sql
new file mode 100644
index 0000000..9d6ef7d
--- /dev/null
+++ b/migrations/2021-05-13-001536_links/up.sql
@@ -0,0 +1,7 @@
+CREATE TABLE links (
+ long TEXT NOT NULL,
+ short TEXT NOT NULL PRIMARY KEY,
+ disabled BOOLEAN NOT NULL DEFAULT FALSE,
+ ip TEXT NOT NULL,
+ uses INTEGER NOT NULL DEFAULT 0
+)