From 27e11b20b06f2f2dbfb56c0998a63169b4b8abc4 Mon Sep 17 00:00:00 2001
From: Joris
Date: Wed, 8 Nov 2017 23:47:26 +0100
Subject: Use a better project structure

---
 src/migrations/2.sql | 23 -----------------------
 1 file changed, 23 deletions(-)
 delete mode 100644 src/migrations/2.sql

(limited to 'src/migrations/2.sql')

diff --git a/src/migrations/2.sql b/src/migrations/2.sql
deleted file mode 100644
index ec0d1b0..0000000
--- a/src/migrations/2.sql
+++ /dev/null
@@ -1,23 +0,0 @@
-BEGIN TRANSACTION;
-
-ALTER TABLE payment RENAME TO tmp_payment;
-
-CREATE TABLE IF NOT EXISTS "payment"(
-  "id" INTEGER PRIMARY KEY,
-  "user" INTEGER NOT NULL REFERENCES "user",
-  "name" VARCHAR NOT NULL,
-  "cost" INTEGER NOT NULL,
-  "date" DATE NOT NULL,
-  "frequency" VARCHAR NOT NULL,
-  "created_at" TIMESTAMP NOT NULL,
-  "edited_at" TIMESTAMP NULL,
-  "deleted_at" TIMESTAMP NULL
-);
-
-INSERT INTO payment(id, user, name, cost, date, frequency, created_at, edited_at, deleted_at)
-SELECT id, user_id, name, cost, date, frequency, created_at, edited_at, deleted_at
-FROM tmp_payment;
-
-DROP TABLE tmp_payment;
-
-COMMIT;
-- 
cgit v1.2.3

