File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1147,24 +1147,6 @@ public function setSharedTables(bool $sharedTables): static
11471147 return $ this ;
11481148 }
11491149
1150- /**
1151- * Set lock mode
1152- *
1153- * Set lock mode when altering tables
1154- *
1155- * @param bool $bool
1156- * @return static
1157- * @throws Exception
1158- */
1159- public function enableLocks (bool $ bool ): static
1160- {
1161- if ($ this ->adapter ->getSupportForAlterLocks ()) {
1162- $ this ->adapter ->enableAlterLocks ($ bool );
1163- }
1164-
1165- return $ this ;
1166- }
1167-
11681150 /**
11691151 * Set Tenant
11701152 *
@@ -1236,6 +1218,23 @@ public function getTenantPerDocument(): bool
12361218 return $ this ->adapter ->getTenantPerDocument ();
12371219 }
12381220
1221+ /**
1222+ * Enable or disable LOCK=SHARED during ALTER TABLE operation
1223+ *
1224+ * Set lock mode when altering tables
1225+ *
1226+ * @param bool $enabled
1227+ * @return static
1228+ */
1229+ public function enableLocks (bool $ enabled ): static
1230+ {
1231+ if ($ this ->adapter ->getSupportForAlterLocks ()) {
1232+ $ this ->adapter ->enableAlterLocks ($ enabled );
1233+ }
1234+
1235+ return $ this ;
1236+ }
1237+
12391238 public function getPreserveDates (): bool
12401239 {
12411240 return $ this ->preserveDates ;
You can’t perform that action at this time.
0 commit comments