1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00

Added the default strategies via migration

This commit is contained in:
Ivar Østhus 2014-11-17 21:23:23 +01:00
parent 3fd95a6d3c
commit e3b8a868d1
4 changed files with 5 additions and 1 deletions

View File

@ -1,4 +1,5 @@
module.exports = {
featureCreated : 'feature-created',
featureUpdated : 'feature-updated'
featureUpdated : 'feature-updated',
strategyCreated: 'strategy-created'
};

View File

@ -0,0 +1 @@
module.exports = require('../lib/migrationRunner').create('004-insert-default-strategy');

View File

@ -0,0 +1 @@
DELETE FROM strategies where name='default';

View File

@ -0,0 +1 @@
INSERT INTO strategies(name, description) values ('default', 'Default on/off strategy.');