@@ -124,7 +124,7 @@ |
||
| 124 | 124 | foreach (array_reverse($alter) as $index) { |
| 125 | 125 | // Can't alter primary keys |
| 126 | 126 | if ($index->type !== 'PRIMARY') { |
| 127 | - $queries[] = $this->driver->getCreateIndexQuery($table, $index->type, |
|
| 127 | + $queries[] = $this->driver->getCreateIndexQuery($table, $index->type, |
|
| 128 | 128 | $index->name, '(' . implode(', ', $index->columns) . ')'); |
| 129 | 129 | } |
| 130 | 130 | } |
@@ -15,8 +15,7 @@ |
||
| 15 | 15 | { |
| 16 | 16 | return preg_match('~^INTO~', $query) || |
| 17 | 17 | $this->driver->result("SELECT sqlite_compileoption_used('ENABLE_UPDATE_DELETE_LIMIT')") ? |
| 18 | - $this->driver->getLimitClause($query, $where, 1, 0) : |
|
| 19 | - //! use primary key in tables with WITHOUT rowid |
|
| 18 | + $this->driver->getLimitClause($query, $where, 1, 0) : //! use primary key in tables with WITHOUT rowid |
|
| 20 | 19 | " $query WHERE rowid = (SELECT rowid FROM " . $this->driver->escapeTableName($table) . $where . ' LIMIT 1)'; |
| 21 | 20 | } |
| 22 | 21 | |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | if ($name == '') { |
| 34 | 34 | continue; |
| 35 | 35 | } |
| 36 | - $columns = implode(", ", array_map(function ($key) { |
|
| 36 | + $columns = implode(", ", array_map(function($key) { |
|
| 37 | 37 | return $this->escapeId($key); |
| 38 | 38 | }, $index->columns)); |
| 39 | 39 | $query .= ";\n\n" . $this->getCreateIndexQuery($table, $index->type, $name, "($columns)"); |