Correctly drop legacy cpfp db tables

This commit is contained in:
Mononaut 2023-01-13 16:33:44 -06:00
parent 43e7328f6f
commit eead4d0af8
No known key found for this signature in database
GPG Key ID: A3F058E41374C04E

View File

@ -461,8 +461,8 @@ class DatabaseMigration {
await this.$executeQuery(this.getCreateCompactTransactionsTableQuery(), await this.$checkIfTableExists('compact_transactions')); await this.$executeQuery(this.getCreateCompactTransactionsTableQuery(), await this.$checkIfTableExists('compact_transactions'));
try { try {
await this.$convertCompactCpfpTables(); 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 `transactions`');
await this.$executeQuery('DROP TABLE IF EXISTS `cpfp_clusters`');
await this.updateToSchemaVersion(52); await this.updateToSchemaVersion(52);
} catch(e) { } catch(e) {
logger.warn('' + (e instanceof Error ? e.message : e)); logger.warn('' + (e instanceof Error ? e.message : e));