1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-04 00:18:01 +01:00

db-migration: create default strategy with event

This commit is contained in:
ivaosthu 2014-11-18 08:16:38 +01:00 committed by Ivar Conradi Østhus
parent a9e7055645
commit 6827974fb7
3 changed files with 3 additions and 0 deletions

View File

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

View File

@ -0,0 +1 @@
delete from events where type='strategy-created' and data->>'name' = 'default';

View File

@ -0,0 +1 @@
INSERT INTO events(type, created_by, data) values ('strategy-created', 'migration', '{"name":"default","description":"Default on or off Strategy."}');