From 90aa74a464a33d9a6bcf180591ef0c0a323a198a Mon Sep 17 00:00:00 2001 From: andsandv Date: Tue, 10 Feb 2015 16:27:59 +0100 Subject: [PATCH] #80 Add schema change --- migrations/20150210152531-006-rename-eventtype.js | 1 + migrations/sql/006-rename-eventtype.down.sql | 2 ++ migrations/sql/006-rename-eventtype.up.sql | 2 ++ 3 files changed, 5 insertions(+) create mode 100644 migrations/20150210152531-006-rename-eventtype.js create mode 100644 migrations/sql/006-rename-eventtype.down.sql create mode 100644 migrations/sql/006-rename-eventtype.up.sql diff --git a/migrations/20150210152531-006-rename-eventtype.js b/migrations/20150210152531-006-rename-eventtype.js new file mode 100644 index 0000000000..cdd0b89518 --- /dev/null +++ b/migrations/20150210152531-006-rename-eventtype.js @@ -0,0 +1 @@ +module.exports = require('../lib/migrationRunner').create('006-rename-eventtype'); \ No newline at end of file diff --git a/migrations/sql/006-rename-eventtype.down.sql b/migrations/sql/006-rename-eventtype.down.sql new file mode 100644 index 0000000000..70354d0d53 --- /dev/null +++ b/migrations/sql/006-rename-eventtype.down.sql @@ -0,0 +1,2 @@ +UPDATE events SET type=feature-revive WHERE type=feature-revived; +UPDATE events SET type=feature-archive WHERE type=feature-archived; \ No newline at end of file diff --git a/migrations/sql/006-rename-eventtype.up.sql b/migrations/sql/006-rename-eventtype.up.sql new file mode 100644 index 0000000000..eb5bed1693 --- /dev/null +++ b/migrations/sql/006-rename-eventtype.up.sql @@ -0,0 +1,2 @@ +UPDATE events SET type=feature-revived WHERE type=feature-revive; +UPDATE events SET type=feature-archived WHERE type=feature-archive; \ No newline at end of file