unleash-server 4.22.7 → 4.22.8

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.
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
  exports.up = function (db, callback) {
3
3
  db.runSql(`
4
- INSERT INTO context_fields(name, description, sort_order, stickiness) VALUES('sessionId', 'Allows you to constrain on sessionId', 4, true);
4
+ INSERT INTO context_fields(name, description, sort_order, stickiness) VALUES('sessionId', 'Allows you to constrain on sessionId', 4, true) ON CONFLICT DO NOTHING;
5
5
 
6
6
  UPDATE context_fields
7
7
  SET stickiness = true
@@ -10,12 +10,6 @@ exports.up = function (db, callback) {
10
10
  };
11
11
  exports.down = function (db, callback) {
12
12
  db.runSql(`
13
- DELETE FROM context_fields
14
- WHERE name LIKE 'sessionId';
15
-
16
- UPDATE context_fields
17
- SET stickiness = null
18
- WHERE name LIKE 'userId';
19
13
  `, callback);
20
14
  };
21
15
  //# sourceMappingURL=20230420211308-update-context-fields-add-sessionId.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"20230420211308-update-context-fields-add-sessionId.js","sourceRoot":"","sources":["../../src/migrations/20230420211308-update-context-fields-add-sessionId.js"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,CAAC,EAAE,GAAG,UAAU,EAAE,EAAE,QAAQ;IAC/B,EAAE,CAAC,MAAM,CACL;;;;;;SAMC,EACD,QAAQ,CACX,CAAC;AACN,CAAC,CAAC;AAEF,OAAO,CAAC,IAAI,GAAG,UAAU,EAAE,EAAE,QAAQ;IACjC,EAAE,CAAC,MAAM,CACL;;;;;;;SAOC,EACD,QAAQ,CACX,CAAC;AACN,CAAC,CAAC"}
1
+ {"version":3,"file":"20230420211308-update-context-fields-add-sessionId.js","sourceRoot":"","sources":["../../src/migrations/20230420211308-update-context-fields-add-sessionId.js"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,CAAC,EAAE,GAAG,UAAU,EAAE,EAAE,QAAQ;IAC/B,EAAE,CAAC,MAAM,CACL;;;;;;SAMC,EACD,QAAQ,CACX,CAAC;AACN,CAAC,CAAC;AAEF,OAAO,CAAC,IAAI,GAAG,UAAU,EAAE,EAAE,QAAQ;IACjC,EAAE,CAAC,MAAM,CACL;SACC,EACD,QAAQ,CACX,CAAC;AACN,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.22.7",
4
+ "version": "4.22.8",
5
5
  "keywords": [
6
6
  "unleash",
7
7
  "feature toggle",