diff --git a/migrations/20141118071458-default-strategy-event.js b/migrations/20141118071458-default-strategy-event.js new file mode 100644 index 0000000000..2fb4203eec --- /dev/null +++ b/migrations/20141118071458-default-strategy-event.js @@ -0,0 +1 @@ +module.exports = require('../lib/migrationRunner').create('004-insert-default-strategy-event'); \ No newline at end of file diff --git a/migrations/sql/004-insert-default-strategy-event.down.sql b/migrations/sql/004-insert-default-strategy-event.down.sql new file mode 100644 index 0000000000..118d29e4ae --- /dev/null +++ b/migrations/sql/004-insert-default-strategy-event.down.sql @@ -0,0 +1 @@ +delete from events where type='strategy-created' and data->>'name' = 'default'; \ No newline at end of file diff --git a/migrations/sql/004-insert-default-strategy-event.up.sql b/migrations/sql/004-insert-default-strategy-event.up.sql new file mode 100644 index 0000000000..867787fa5d --- /dev/null +++ b/migrations/sql/004-insert-default-strategy-event.up.sql @@ -0,0 +1 @@ +INSERT INTO events(type, created_by, data) values ('strategy-created', 'migration', '{"name":"default","description":"Default on or off Strategy."}'); \ No newline at end of file