From b18115f71a427c0be66eb48d5767d2ba54b36deb Mon Sep 17 00:00:00 2001 From: nymkappa Date: Thu, 17 Feb 2022 18:00:28 +0900 Subject: [PATCH] Reverts part of 6f25ecd98d9fdf1079dd550ecde4162ebe8d62d5 --- backend/src/api/database-migration.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/backend/src/api/database-migration.ts b/backend/src/api/database-migration.ts index 298801ec0..f83f95034 100644 --- a/backend/src/api/database-migration.ts +++ b/backend/src/api/database-migration.ts @@ -96,8 +96,6 @@ class DatabaseMigration { } if (databaseSchemaVersion < 6 && isBitcoin === true) { - // We need to re-index the blocks table, so we nuke it - await this.$executeQuery(connection, 'TRUNCATE blocks;'); // Cleanup original blocks fields type await this.$executeQuery(connection, 'ALTER TABLE blocks MODIFY `height` integer unsigned NOT NULL DEFAULT "0"'); await this.$executeQuery(connection, 'ALTER TABLE blocks MODIFY `tx_count` smallint unsigned NOT NULL DEFAULT "0"');