From 5e40d4dc7fcdce94fdb14c52106b2b82cae7d570 Mon Sep 17 00:00:00 2001 From: ivaosthu Date: Mon, 15 Dec 2014 22:04:39 +0100 Subject: [PATCH] Database migration #43 --- migrations/20141215210141-005-archived-flag-to-features.js | 1 + migrations/sql/005-archived-flag-to-features.down.sql | 1 + migrations/sql/005-archived-flag-to-features.up.sql | 1 + sudo | 0 4 files changed, 3 insertions(+) create mode 100644 migrations/20141215210141-005-archived-flag-to-features.js create mode 100644 migrations/sql/005-archived-flag-to-features.down.sql create mode 100644 migrations/sql/005-archived-flag-to-features.up.sql create mode 100644 sudo diff --git a/migrations/20141215210141-005-archived-flag-to-features.js b/migrations/20141215210141-005-archived-flag-to-features.js new file mode 100644 index 0000000000..12a3995472 --- /dev/null +++ b/migrations/20141215210141-005-archived-flag-to-features.js @@ -0,0 +1 @@ +module.exports = require('../lib/migrationRunner').create('005-archived-flag-to-features'); diff --git a/migrations/sql/005-archived-flag-to-features.down.sql b/migrations/sql/005-archived-flag-to-features.down.sql new file mode 100644 index 0000000000..4330a640ed --- /dev/null +++ b/migrations/sql/005-archived-flag-to-features.down.sql @@ -0,0 +1 @@ +ALTER TABLE features DROP COLUMN "archived"; \ No newline at end of file diff --git a/migrations/sql/005-archived-flag-to-features.up.sql b/migrations/sql/005-archived-flag-to-features.up.sql new file mode 100644 index 0000000000..6676bed910 --- /dev/null +++ b/migrations/sql/005-archived-flag-to-features.up.sql @@ -0,0 +1 @@ +ALTER TABLE features ADD archived integer DEFAULT 0; \ No newline at end of file diff --git a/sudo b/sudo new file mode 100644 index 0000000000..e69de29bb2