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