Skip to content

Commit b7493e4

Browse files
committed
feat: migrations lock
1 parent ebc25b4 commit b7493e4

6 files changed

Lines changed: 360 additions & 116 deletions

File tree

app/Config/Migrations.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,19 @@ class Migrations extends BaseConfig
4747
* - Y_m_d_His_
4848
*/
4949
public string $timestampFormat = 'Y-m-d-His_';
50+
51+
/**
52+
* --------------------------------------------------------------------------
53+
* Enable/Disable Migration Lock
54+
* --------------------------------------------------------------------------
55+
*
56+
* Locking is disabled by default.
57+
*
58+
* When enabled, it will prevent multiple migration processes
59+
* from running at the same time by using a lock mechanism.
60+
*
61+
* This is useful in production environments to avoid conflicts
62+
* or race conditions during concurrent deployments.
63+
*/
64+
public bool $lock = false;
5065
}

0 commit comments

Comments
 (0)