|
@@ 1153-1159 (lines=7) @@
|
| 1150 |
|
return $state; |
| 1151 |
|
}); |
| 1152 |
|
|
| 1153 |
|
$instructions->addPostStep(function ($state) { |
| 1154 |
|
$columns = $this->fetchAll(sprintf('pragma table_info(%s)', $this->quoteTableName($state['tmpTableName']))); |
| 1155 |
|
$names = array_map([$this, 'quoteColumnName'], array_column($columns, 'name')); |
| 1156 |
|
$selectColumns = $writeColumns = $names; |
| 1157 |
|
|
| 1158 |
|
return compact('selectColumns', 'writeColumns') + $state; |
| 1159 |
|
}); |
| 1160 |
|
|
| 1161 |
|
return $this->copyAndDropTmpTable($instructions, $tableName); |
| 1162 |
|
} |
|
@@ 1209-1215 (lines=7) @@
|
| 1206 |
|
return $state; |
| 1207 |
|
}); |
| 1208 |
|
|
| 1209 |
|
$instructions->addPostStep(function ($state) { |
| 1210 |
|
$columns = $this->fetchAll(sprintf('pragma table_info(%s)', $this->quoteTableName($state['tmpTableName']))); |
| 1211 |
|
$names = array_map([$this, 'quoteColumnName'], array_column($columns, 'name')); |
| 1212 |
|
$selectColumns = $writeColumns = $names; |
| 1213 |
|
|
| 1214 |
|
return compact('selectColumns', 'writeColumns') + $state; |
| 1215 |
|
}); |
| 1216 |
|
|
| 1217 |
|
return $this->copyAndDropTmpTable($instructions, $tableName); |
| 1218 |
|
} |