Correctly drop legacy cpfp db tables

This commit is contained in:
Mononaut committed 2023-01-13 16:34:04 -06:00
1 parent b7577d3c99
commit bfb8bf22b6
1 file changed
+1 -1
+1 -1
View File
@@ -461,8 +461,8 @@ class DatabaseMigration {
await this.$executeQuery(this.getCreateCompactTransactionsTableQuery(), await this.$checkIfTableExists('compact_transactions'));
try {
await this.$convertCompactCpfpTables();
await this.$executeQuery('DROP TABLE IF EXISTS `cpfp_clusters`');
await this.$executeQuery('DROP TABLE IF EXISTS `transactions`');
await this.$executeQuery('DROP TABLE IF EXISTS `cpfp_clusters`');
await this.updateToSchemaVersion(52);
} catch(e) {
logger.warn('' + (e instanceof Error ? e.message : e));