mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
db-migration: create default strategy with event
This commit is contained in:
parent
578751ef94
commit
278a8da162
1
migrations/20141118071458-default-strategy-event.js
Normal file
1
migrations/20141118071458-default-strategy-event.js
Normal file
@ -0,0 +1 @@
|
||||
module.exports = require('../lib/migrationRunner').create('004-insert-default-strategy-event');
|
@ -0,0 +1 @@
|
||||
delete from events where type='strategy-created' and data->>'name' = 'default';
|
1
migrations/sql/004-insert-default-strategy-event.up.sql
Normal file
1
migrations/sql/004-insert-default-strategy-event.up.sql
Normal file
@ -0,0 +1 @@
|
||||
INSERT INTO events(type, created_by, data) values ('strategy-created', 'migration', '{"name":"default","description":"Default on or off Strategy."}');
|
Loading…
Reference in New Issue
Block a user