1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-01 00:08:27 +01:00
unleash.unleash/packages/unleash-api/migrations/sql
Ivar 096c86d58b Add support for aggregate_strategies in the API.
This commit changes the features-tables:
- drop columns 'strategy' and 'parameters'
- add column 'strategies' of type json.
- migrates existing strategy-mappings in to the new format.

The idea is that the 'strategies' column should contain a json-array
of strategy-configuration for the toggle:

```
[{
 "name" : "strategy1",
 "parameters": { "name": "vale" }
}]

```

To make sure to not break exiting clients the api is extended with a
mapping layer (adding old fields to the json-respons, and mapping
to the new format on create/update a feature toggle.

this commit is first step in solving #102
2016-09-06 21:31:28 +02:00
..
001-initial-schema.down.sql use lerna for multipackaging 2016-06-18 09:19:57 +02:00
001-initial-schema.up.sql use lerna for multipackaging 2016-06-18 09:19:57 +02:00
002-add-description-to-features.down.sql use lerna for multipackaging 2016-06-18 09:19:57 +02:00
002-add-description-to-features.up.sql use lerna for multipackaging 2016-06-18 09:19:57 +02:00
003-add-parameters-template-to-strategies.down.sql use lerna for multipackaging 2016-06-18 09:19:57 +02:00
003-add-parameters-template-to-strategies.up.sql use lerna for multipackaging 2016-06-18 09:19:57 +02:00
004-insert-default-strategy-event.down.sql use lerna for multipackaging 2016-06-18 09:19:57 +02:00
004-insert-default-strategy-event.up.sql use lerna for multipackaging 2016-06-18 09:19:57 +02:00
004-insert-default-strategy.down.sql use lerna for multipackaging 2016-06-18 09:19:57 +02:00
004-insert-default-strategy.up.sql use lerna for multipackaging 2016-06-18 09:19:57 +02:00
005-archived-flag-to-features.down.sql use lerna for multipackaging 2016-06-18 09:19:57 +02:00
005-archived-flag-to-features.up.sql use lerna for multipackaging 2016-06-18 09:19:57 +02:00
006-rename-eventtype.down.sql use lerna for multipackaging 2016-06-18 09:19:57 +02:00
006-rename-eventtype.up.sql use lerna for multipackaging 2016-06-18 09:19:57 +02:00
007-add-strategies-to-features.down.sql Add support for aggregate_strategies in the API. 2016-09-06 21:31:28 +02:00
007-add-strategies-to-features.up.sql Add support for aggregate_strategies in the API. 2016-09-06 21:31:28 +02:00