From 5a8ea5bca906dcf958942d4dd912c590aedeaf2f Mon Sep 17 00:00:00 2001 From: Kumar Ankur Date: Tue, 28 Aug 2018 01:28:00 +0530 Subject: [PATCH] down.sql logic not required as per review comments --- .../2018-08-27-172114_update_ciphers/down.sql | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/migrations/2018-08-27-172114_update_ciphers/down.sql b/migrations/2018-08-27-172114_update_ciphers/down.sql index 63277712..e69de29b 100644 --- a/migrations/2018-08-27-172114_update_ciphers/down.sql +++ b/migrations/2018-08-27-172114_update_ciphers/down.sql @@ -1,20 +0,0 @@ -ALTER TABLE ciphers RENAME TO oldCiphers; - -CREATE TABLE ciphers ( - uuid TEXT NOT NULL PRIMARY KEY, - created_at DATETIME NOT NULL, - updated_at DATETIME NOT NULL, - user_uuid TEXT REFERENCES users (uuid), - organization_uuid TEXT REFERENCES organizations (uuid), - type INTEGER NOT NULL, - name TEXT NOT NULL, - notes TEXT, - fields TEXT, - data TEXT NOT NULL, - favorite BOOLEAN NOT NULL -); - -INSERT INTO ciphers (uuid, created_at, updated_at, user_uuid, organization_uuid, type, name, notes, fields, data, favorite) -SELECT uuid, created_at, updated_at, user_uuid, organization_uuid, type, name, notes, fields, data, favorite FROM oldCiphers; - -DROP TABLE oldCiphers; \ No newline at end of file