|
@@ 894-900 (lines=7) @@
|
| 891 |
|
return $state; |
| 892 |
|
}); |
| 893 |
|
|
| 894 |
|
$instructions->addPostStep(function ($state) { |
| 895 |
|
$columns = $this->fetchAll(sprintf('pragma table_info(%s)', $this->quoteTableName($state['tmpTableName']))); |
| 896 |
|
$names = array_map([$this, 'quoteColumnName'], array_column($columns, 'name')); |
| 897 |
|
$selectColumns = $writeColumns = $names; |
| 898 |
|
|
| 899 |
|
return compact('selectColumns', 'writeColumns') + $state; |
| 900 |
|
}); |
| 901 |
|
|
| 902 |
|
return $this->copyAndDropTmpTable($instructions, $tableName); |
| 903 |
|
} |
|
@@ 952-958 (lines=7) @@
|
| 949 |
|
return $state; |
| 950 |
|
}); |
| 951 |
|
|
| 952 |
|
$instructions->addPostStep(function ($state) { |
| 953 |
|
$columns = $this->fetchAll(sprintf('pragma table_info(%s)', $this->quoteTableName($state['tmpTableName']))); |
| 954 |
|
$names = array_map([$this, 'quoteColumnName'], array_column($columns, 'name')); |
| 955 |
|
$selectColumns = $writeColumns = $names; |
| 956 |
|
|
| 957 |
|
return compact('selectColumns', 'writeColumns') + $state; |
| 958 |
|
}); |
| 959 |
|
|
| 960 |
|
return $this->copyAndDropTmpTable($instructions, $tableName); |
| 961 |
|
} |