Skip to content

Commit

Permalink
fix: wrong update of exisiting scenario features data in migration
Browse files Browse the repository at this point in the history
  • Loading branch information
angelhigueraacid authored and hotzevzl committed Jul 5, 2022
1 parent 60db02e commit 7e60c25
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,11 @@ export class AddApiFeatureIdToScenarioFeaturesData1653916456540

await queryRunner.query(`
update scenario_features_data
set api_feature_id = (
select fd.feature_id
set api_feature_id = fd.feature_id
from scenario_features_data sfd
inner join features_data fd on fd.id = sfd.feature_class_id
);
`);
where sfd.id = scenario_features_data.id;
`);

await queryRunner.query(
`
Expand Down

0 comments on commit 7e60c25

Please sign in to comment.