unleash-server 4.10.4 → 4.10.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2 @@
1
+ export function up(db: any, cb: any): void;
2
+ export function down(db: any, cb: any): void;
@@ -0,0 +1,15 @@
1
+ 'use strict';
2
+ exports.up = function (db, cb) {
3
+ db.runSql(`
4
+ UPDATE feature_strategies
5
+ SET project_name = project
6
+ FROM features
7
+ WHERE features.project != feature_strategies.project_name
8
+ AND features.name = feature_strategies.feature_name;
9
+ `, cb);
10
+ };
11
+ // This is a fix for a broken state, we don't want this to be rolled back
12
+ exports.down = function (db, cb) {
13
+ cb();
14
+ };
15
+ //# sourceMappingURL=20220511124923-fix-patch-broken-feature-strategies.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"20220511124923-fix-patch-broken-feature-strategies.js","sourceRoot":"","sources":["../../src/migrations/20220511124923-fix-patch-broken-feature-strategies.js"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,CAAC,EAAE,GAAG,UAAU,EAAE,EAAE,EAAE;IACzB,EAAE,CAAC,MAAM,CACL;;;;;;SAMC,EACD,EAAE,CACL,CAAC;AACN,CAAC,CAAC;AAEF,yEAAyE;AACzE,OAAO,CAAC,IAAI,GAAG,UAAU,EAAE,EAAE,EAAE;IAC3B,EAAE,EAAE,CAAC;AACT,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "unleash-server",
3
3
  "description": "Unleash is an enterprise ready feature toggles service. It provides different strategies for handling feature toggles.",
4
- "version": "4.10.4",
4
+ "version": "4.10.5",
5
5
  "keywords": [
6
6
  "unleash",
7
7
  "feature toggle",