Reverts part of 6f25ecd98d9fdf1079dd550ecde4162ebe8d62d5

This commit is contained in:
nymkappa 2022-02-17 18:00:28 +09:00
parent 7761e75d4c
commit b18115f71a
No known key found for this signature in database
GPG key ID: E155910B16E8BD04

View file

@ -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"');