From d410d75ca967d476784eaca22d6e49f21ca318dd Mon Sep 17 00:00:00 2001
From: Nathan Perry <avaglir@gmail.com>
Date: Thu, 15 Feb 2018 00:03:32 -0500
Subject: start adding in diesel

---
 migrations/2018-02-15-031841_create_memes/up.sql | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 migrations/2018-02-15-031841_create_memes/up.sql

(limited to 'migrations/2018-02-15-031841_create_memes/up.sql')

diff --git a/migrations/2018-02-15-031841_create_memes/up.sql b/migrations/2018-02-15-031841_create_memes/up.sql
new file mode 100644
index 0000000..38097e7
--- /dev/null
+++ b/migrations/2018-02-15-031841_create_memes/up.sql
@@ -0,0 +1,14 @@
+CREATE TABLE text_memes (
+    id          SERIAL PRIMARY KEY,
+    title       varchar UNIQUE NOT NULL,
+    content     TEXT NOT NULL,
+    pic_related varchar NULL,
+    UNIQUE(content, pic_related)
+);
+
+CREATE TABLE audio_memes (
+    id      SERIAL PRIMARY KEY,
+    title   varchar UNIQUE NOT NULL,
+    link    varchar UNIQUE NOT NULL
+);
+
-- 
cgit v1.3.1

