diff --git a/data/migrations/versions/a6c463dfb9fe_back_fill_build_expand_config.py b/data/migrations/versions/a6c463dfb9fe_back_fill_build_expand_config.py index 3323f556e..e682da932 100644 --- a/data/migrations/versions/a6c463dfb9fe_back_fill_build_expand_config.py +++ b/data/migrations/versions/a6c463dfb9fe_back_fill_build_expand_config.py @@ -23,6 +23,7 @@ def upgrade(tables): for repositoryBuildTrigger in repostioryBuildTriggers: config = json.loads(repositoryBuildTrigger.config) repositoryBuildTrigger.config = json.dumps(get_config_expand(config)) + repositoryBuildTrigger.save() def downgrade(tables): @@ -30,6 +31,7 @@ def downgrade(tables): for repositoryBuildTrigger in repostioryBuildTriggers: config = json.loads(repositoryBuildTrigger.config) repositoryBuildTrigger.config = json.dumps(get_config_expand(config)) + repositoryBuildTrigger.save() def create_context(current_subdir):