|
@@ 1203-1209 (lines=7) @@
|
| 1200 |
|
return $state; |
| 1201 |
|
}); |
| 1202 |
|
|
| 1203 |
|
$instructions->addPostStep(function ($state) { |
| 1204 |
|
$columns = $this->fetchAll(sprintf('pragma table_info(%s)', $this->quoteTableName($state['tmpTableName']))); |
| 1205 |
|
$names = array_map([$this, 'quoteColumnName'], array_column($columns, 'name')); |
| 1206 |
|
$selectColumns = $writeColumns = $names; |
| 1207 |
|
|
| 1208 |
|
return compact('selectColumns', 'writeColumns') + $state; |
| 1209 |
|
}); |
| 1210 |
|
|
| 1211 |
|
return $this->copyAndDropTmpTable($instructions, $tableName); |
| 1212 |
|
} |
|
@@ 1260-1266 (lines=7) @@
|
| 1257 |
|
return $state; |
| 1258 |
|
}); |
| 1259 |
|
|
| 1260 |
|
$instructions->addPostStep(function ($state) { |
| 1261 |
|
$columns = $this->fetchAll(sprintf('pragma table_info(%s)', $this->quoteTableName($state['tmpTableName']))); |
| 1262 |
|
$names = array_map([$this, 'quoteColumnName'], array_column($columns, 'name')); |
| 1263 |
|
$selectColumns = $writeColumns = $names; |
| 1264 |
|
|
| 1265 |
|
return compact('selectColumns', 'writeColumns') + $state; |
| 1266 |
|
}); |
| 1267 |
|
|
| 1268 |
|
return $this->copyAndDropTmpTable($instructions, $tableName); |
| 1269 |
|
} |