You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/dstack/_internal/server/migrations/versions/2026/02_18_1122_a8ed24fd7f90_add_pipeline_indexes_for_compute_and_.py
+17Lines changed: 17 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,21 @@
19
19
defupgrade() ->None:
20
20
# ### commands auto generated by Alembic - please adjust! ###
21
21
withop.get_context().autocommit_block():
22
+
ifop.get_context().dialect.name=="postgresql":
23
+
# Concurrent index ops can fail midway, leaving invalid indexes behind.
24
+
# Use DROP INDEX IF EXISTS so the migration can be retried safely.
0 commit comments