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:
parent
3fd95a6d3c
commit
e3b8a868d1
@ -1,4 +1,5 @@
|
||||
module.exports = {
|
||||
featureCreated : 'feature-created',
|
||||
featureUpdated : 'feature-updated'
|
||||
featureUpdated : 'feature-updated',
|
||||
strategyCreated: 'strategy-created'
|
||||
};
|
1
migrations/20141117202209-insert-default-strategy.js
Normal file
1
migrations/20141117202209-insert-default-strategy.js
Normal file
@ -0,0 +1 @@
|
||||
module.exports = require('../lib/migrationRunner').create('004-insert-default-strategy');
|
1
migrations/sql/004-insert-default-strategy.down.sql
Normal file
1
migrations/sql/004-insert-default-strategy.down.sql
Normal file
@ -0,0 +1 @@
|
||||
DELETE FROM strategies where name='default';
|
1
migrations/sql/004-insert-default-strategy.up.sql
Normal file
1
migrations/sql/004-insert-default-strategy.up.sql
Normal file
@ -0,0 +1 @@
|
||||
INSERT INTO strategies(name, description) values ('default', 'Default on/off strategy.');
|
Loading…
Reference in New Issue
Block a user