mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-27 00:52:50 +00:00
Fix failed migration state
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
-- This migration fixes the failed state of 20240101000000_individual_tickets_no_timezone
|
||||
-- It marks the failed migration as rolled back so it can be retried
|
||||
|
||||
-- Mark the failed migration as rolled back
|
||||
UPDATE passenger._prisma_migrations
|
||||
SET rolled_back_at = CURRENT_TIMESTAMP,
|
||||
logs = 'Migration failed due to missing TicketSeat table. Automatically rolled back by fix migration to allow retry with idempotent SQL.'
|
||||
WHERE migration_name = '20240101000000_individual_tickets_no_timezone'
|
||||
AND rolled_back_at IS NULL
|
||||
AND finished_at IS NULL;
|
||||
Reference in New Issue
Block a user