|
@@ 1219-1225 (lines=7) @@
|
| 1216 |
|
return $state; |
| 1217 |
|
}); |
| 1218 |
|
|
| 1219 |
|
$instructions->addPostStep(function ($state) { |
| 1220 |
|
$columns = $this->fetchAll(sprintf('pragma table_info(%s)', $this->quoteTableName($state['tmpTableName']))); |
| 1221 |
|
$names = array_map([$this, 'quoteColumnName'], array_column($columns, 'name')); |
| 1222 |
|
$selectColumns = $writeColumns = $names; |
| 1223 |
|
|
| 1224 |
|
return compact('selectColumns', 'writeColumns') + $state; |
| 1225 |
|
}); |
| 1226 |
|
|
| 1227 |
|
return $this->copyAndDropTmpTable($instructions, $tableName); |
| 1228 |
|
} |
|
@@ 1276-1282 (lines=7) @@
|
| 1273 |
|
return $state; |
| 1274 |
|
}); |
| 1275 |
|
|
| 1276 |
|
$instructions->addPostStep(function ($state) { |
| 1277 |
|
$columns = $this->fetchAll(sprintf('pragma table_info(%s)', $this->quoteTableName($state['tmpTableName']))); |
| 1278 |
|
$names = array_map([$this, 'quoteColumnName'], array_column($columns, 'name')); |
| 1279 |
|
$selectColumns = $writeColumns = $names; |
| 1280 |
|
|
| 1281 |
|
return compact('selectColumns', 'writeColumns') + $state; |
| 1282 |
|
}); |
| 1283 |
|
|
| 1284 |
|
return $this->copyAndDropTmpTable($instructions, $tableName); |
| 1285 |
|
} |