Better migration locking behaviour
This commit is contained in:
3
sql/migrations/lock.sql
Normal file
3
sql/migrations/lock.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
WITH rows as (
|
||||
UPDATE migrations_lock SET is_locked = true WHERE is_locked = false RETURNING 1
|
||||
) SELECT COUNT(*) FROM rows;
|
||||
Reference in New Issue
Block a user