diff --git a/system/Database/Forge.php b/system/Database/Forge.php index d07675401df8..406f75b47030 100644 --- a/system/Database/Forge.php +++ b/system/Database/Forge.php @@ -135,7 +135,7 @@ class Forge * * @var false|string */ - protected $renameTableStr = 'ALTER TABLE %s RENAME TO %s;'; + protected $renameTableStr = 'ALTER TABLE %s RENAME TO %s'; /** * UNSIGNED support @@ -1042,14 +1042,14 @@ protected function _processIndexes(string $table) if (in_array($i, $this->uniqueKeys, true)) { $sqls[] = 'ALTER TABLE ' . $this->db->escapeIdentifiers($table) . ' ADD CONSTRAINT ' . $this->db->escapeIdentifiers($table . '_' . implode('_', $this->keys[$i])) - . ' UNIQUE (' . implode(', ', $this->db->escapeIdentifiers($this->keys[$i])) . ');'; + . ' UNIQUE (' . implode(', ', $this->db->escapeIdentifiers($this->keys[$i])) . ')'; continue; } $sqls[] = 'CREATE INDEX ' . $this->db->escapeIdentifiers($table . '_' . implode('_', $this->keys[$i])) . ' ON ' . $this->db->escapeIdentifiers($table) - . ' (' . implode(', ', $this->db->escapeIdentifiers($this->keys[$i])) . ');'; + . ' (' . implode(', ', $this->db->escapeIdentifiers($this->keys[$i])) . ')'; } return $sqls;