Skip to content

Commit b17f36f

Browse files
committed
Add message
1 parent cb2c5a3 commit b17f36f

1 file changed

Lines changed: 17 additions & 18 deletions

File tree

src/Database/Database.php

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)