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