@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | if ($originals && !$this->driver->execute('INSERT INTO ' . $this->driver->table($tempName) . |
100 | 100 | ' (' . implode(', ', $originals) . ') SELECT ' . implode( |
101 | 101 | ', ', |
102 | - array_map(function ($key) { |
|
102 | + array_map(function($key) { |
|
103 | 103 | return $this->driver->escapeId($key); |
104 | 104 | }, array_keys($originals)) |
105 | 105 | ) . ' FROM ' . $this->driver->table($table))) { |
@@ -111,8 +111,7 @@ discard block |
||
111 | 111 | $triggers[] = 'CREATE TRIGGER ' . $this->driver->escapeId($trigger_name) . ' ' . |
112 | 112 | implode(' ', $timing_event) . ' ON ' . $this->driver->table($name) . "\n$trigger[Statement]"; |
113 | 113 | } |
114 | - $autoIncrement = $autoIncrement ? 0 : |
|
115 | - $this->connection->result('SELECT seq FROM sqlite_sequence WHERE name = ' . |
|
114 | + $autoIncrement = $autoIncrement ? 0 : $this->connection->result('SELECT seq FROM sqlite_sequence WHERE name = ' . |
|
116 | 115 | $this->driver->quote($table)); // if $autoIncrement is set then it will be updated later |
117 | 116 | // drop before creating indexes and triggers to allow using old names |
118 | 117 | if (!$this->driver->execute('DROP TABLE ' . $this->driver->table($table)) || |