Skip to content

Commit 475be6a

Browse files
fix migration
1 parent 13859f4 commit 475be6a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/postgres-database/src/simcore_postgres_database/migration/versions/42ec7816c0b4_computational_collection_runs.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,7 @@ def upgrade():
8787
SET collection_run_id = (
8888
SELECT collection_run_id::text
8989
FROM comp_runs_collections
90-
WHERE client_or_system_generated_id LIKE 'migration-generated-%'
91-
LIMIT 1
90+
WHERE client_or_system_generated_id = 'migration-generated-' || comp_runs.run_id::text
9291
)
9392
WHERE collection_run_id IS NULL
9493
"""

0 commit comments

Comments
 (0)