mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-09 00:18:00 +01:00
fix: correct patch for feature project id
This commit is contained in:
parent
37fa254ceb
commit
7250a0574c
@ -0,0 +1,19 @@
|
||||
'use strict';
|
||||
|
||||
exports.up = function (db, cb) {
|
||||
db.runSql(
|
||||
`
|
||||
UPDATE feature_strategies
|
||||
SET project_name = project
|
||||
FROM features
|
||||
WHERE features.project != feature_strategies.project_name
|
||||
AND features.name = feature_strategies.feature_name;
|
||||
`,
|
||||
cb,
|
||||
);
|
||||
};
|
||||
|
||||
// This is a fix for a broken state, we don't want this to be rolled back
|
||||
exports.down = function (db, cb) {
|
||||
cb();
|
||||
};
|
Loading…
Reference in New Issue
Block a user