Skip to content

Commit e2b7a9e

Browse files
committed
[sqlite] Faster check on deletion
1 parent 6678ca0 commit e2b7a9e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/persisters/sqlite/commands.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,9 @@ export const getCommandFunctions = (
186186

187187
// Delete the table
188188
if (
189+
deleteEmptyTable &&
189190
arrayIsEmpty(changingColumnNames) &&
190-
collHas(schemaMap, tableName) &&
191-
deleteEmptyTable
191+
collHas(schemaMap, tableName)
192192
) {
193193
await cmd('DROP TABLE' + escapeId(tableName));
194194
mapSet(schemaMap, tableName);

0 commit comments

Comments
 (0)