Skip to content

Commit

Permalink
Added LOCK=NONE
Browse files Browse the repository at this point in the history
Signed-off-by: Kartik Kathuria <kathuriakartik0@gmail.com>
  • Loading branch information
kartik1000 committed Jan 17, 2020
1 parent 1155c29 commit 9054d1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -942,7 +942,7 @@ protected function updateColumns()
$sql_query = 'ALTER TABLE ' . Util::backquote($this->table) . ' ';
$sql_query .= implode(', ', $changes) . $key_query;
if (isset($_POST['online_transaction'])) {
$sql_query .= ', ALGORITHM=INPLACE';
$sql_query .= ', ALGORITHM=INPLACE, LOCK=NONE';
}
$sql_query .= ';';

Expand Down
2 changes: 1 addition & 1 deletion libraries/classes/CreateAddField.php
Expand Up @@ -534,7 +534,7 @@ public function tryColumnCreationQuery(
$sqlQuery = 'ALTER TABLE ' .
Util::backquote($table) . ' ' . $sqlStatement;
if (isset($_POST['online_transaction'])) {
$sqlQuery .= ', ALGORITHM=INPLACE';
$sqlQuery .= ', ALGORITHM=INPLACE, LOCK=NONE';
}
$sqlQuery .= ';';

Expand Down

0 comments on commit 9054d1f

Please sign in to comment.