|
@@ 913-919 (lines=7) @@
|
| 910 |
|
return $state; |
| 911 |
|
}); |
| 912 |
|
|
| 913 |
|
$instructions->addPostStep(function ($state) { |
| 914 |
|
$columns = $this->fetchAll(sprintf('pragma table_info(%s)', $this->quoteTableName($state['tmpTableName']))); |
| 915 |
|
$names = array_map([$this, 'quoteColumnName'], array_column($columns, 'name')); |
| 916 |
|
$selectColumns = $writeColumns = $names; |
| 917 |
|
|
| 918 |
|
return compact('selectColumns', 'writeColumns') + $state; |
| 919 |
|
}); |
| 920 |
|
|
| 921 |
|
return $this->copyAndDropTmpTable($instructions, $tableName); |
| 922 |
|
} |
|
@@ 969-975 (lines=7) @@
|
| 966 |
|
return $state; |
| 967 |
|
}); |
| 968 |
|
|
| 969 |
|
$instructions->addPostStep(function ($state) { |
| 970 |
|
$columns = $this->fetchAll(sprintf('pragma table_info(%s)', $this->quoteTableName($state['tmpTableName']))); |
| 971 |
|
$names = array_map([$this, 'quoteColumnName'], array_column($columns, 'name')); |
| 972 |
|
$selectColumns = $writeColumns = $names; |
| 973 |
|
|
| 974 |
|
return compact('selectColumns', 'writeColumns') + $state; |
| 975 |
|
}); |
| 976 |
|
|
| 977 |
|
return $this->copyAndDropTmpTable($instructions, $tableName); |
| 978 |
|
} |