diff --git a/lib/eventType.js b/lib/eventType.js index 541ab30f60..1dc8897ea6 100644 --- a/lib/eventType.js +++ b/lib/eventType.js @@ -1,4 +1,5 @@ module.exports = { featureCreated : 'feature-created', - featureUpdated : 'feature-updated' + featureUpdated : 'feature-updated', + strategyCreated: 'strategy-created' }; \ No newline at end of file diff --git a/migrations/20141117202209-insert-default-strategy.js b/migrations/20141117202209-insert-default-strategy.js new file mode 100644 index 0000000000..7b6adc789b --- /dev/null +++ b/migrations/20141117202209-insert-default-strategy.js @@ -0,0 +1 @@ +module.exports = require('../lib/migrationRunner').create('004-insert-default-strategy'); \ No newline at end of file diff --git a/migrations/sql/004-insert-default-strategy.down.sql b/migrations/sql/004-insert-default-strategy.down.sql new file mode 100644 index 0000000000..170908dda3 --- /dev/null +++ b/migrations/sql/004-insert-default-strategy.down.sql @@ -0,0 +1 @@ +DELETE FROM strategies where name='default'; \ No newline at end of file diff --git a/migrations/sql/004-insert-default-strategy.up.sql b/migrations/sql/004-insert-default-strategy.up.sql new file mode 100644 index 0000000000..bbb36cdad5 --- /dev/null +++ b/migrations/sql/004-insert-default-strategy.up.sql @@ -0,0 +1 @@ +INSERT INTO strategies(name, description) values ('default', 'Default on/off strategy.'); \ No newline at end of file