Skip to content

Commit ac84d20

Browse files
authored
Merge pull request #5513 from ytetsuro/patch-3
Remove semicolons from SQL statements.
2 parents 7ed298f + ce2ae54 commit ac84d20

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

system/Database/Forge.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ class Forge
135135
*
136136
* @var false|string
137137
*/
138-
protected $renameTableStr = 'ALTER TABLE %s RENAME TO %s;';
138+
protected $renameTableStr = 'ALTER TABLE %s RENAME TO %s';
139139

140140
/**
141141
* UNSIGNED support
@@ -1042,14 +1042,14 @@ protected function _processIndexes(string $table)
10421042
if (in_array($i, $this->uniqueKeys, true)) {
10431043
$sqls[] = 'ALTER TABLE ' . $this->db->escapeIdentifiers($table)
10441044
. ' ADD CONSTRAINT ' . $this->db->escapeIdentifiers($table . '_' . implode('_', $this->keys[$i]))
1045-
. ' UNIQUE (' . implode(', ', $this->db->escapeIdentifiers($this->keys[$i])) . ');';
1045+
. ' UNIQUE (' . implode(', ', $this->db->escapeIdentifiers($this->keys[$i])) . ')';
10461046

10471047
continue;
10481048
}
10491049

10501050
$sqls[] = 'CREATE INDEX ' . $this->db->escapeIdentifiers($table . '_' . implode('_', $this->keys[$i]))
10511051
. ' ON ' . $this->db->escapeIdentifiers($table)
1052-
. ' (' . implode(', ', $this->db->escapeIdentifiers($this->keys[$i])) . ');';
1052+
. ' (' . implode(', ', $this->db->escapeIdentifiers($this->keys[$i])) . ')';
10531053
}
10541054

10551055
return $sqls;

0 commit comments

Comments
 (0)