From fdf65962b9610ab0a7b8e91dc1a2d4973f44c169 Mon Sep 17 00:00:00 2001
From: Nathan Perry <avaglir@gmail.com>
Date: Sat, 7 Apr 2018 06:09:52 -0400
Subject: database-based memeing working

---
 migrations/2018-04-07-091602_add_filename/up.sql | 5 +++++
 1 file changed, 5 insertions(+)
 create mode 100644 migrations/2018-04-07-091602_add_filename/up.sql

(limited to 'migrations/2018-04-07-091602_add_filename/up.sql')

diff --git a/migrations/2018-04-07-091602_add_filename/up.sql b/migrations/2018-04-07-091602_add_filename/up.sql
new file mode 100644
index 0000000..c5c572e
--- /dev/null
+++ b/migrations/2018-04-07-091602_add_filename/up.sql
@@ -0,0 +1,5 @@
+ALTER TABLE images  ADD COLUMN filename VARCHAR;
+
+UPDATE images SET filename = 'unknown.bin';
+
+ALTER TABLE images  ALTER COLUMN filename SET NOT NULL;
-- 
cgit v1.3.1

