Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/core/engine/wasm/WasmDatabaseEngine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,9 @@ export class WasmDatabaseEngine implements DatabaseOperations {
if (deletedColumns) {
await this.executeQuery('BEGIN TRANSACTION');
try {
for (const col of deletedColumns) {
await this.addColumn(targetTable, col.name, col.type);
}
await Promise.all(
deletedColumns.map(col => this.addColumn(targetTable, col.name, col.type))
);

// Optimize restoration by grouping rows that have identical column sets
// This is done effectively by doing one UPDATE per row for all restored columns
Expand Down