Store block first seen in db

This commit is contained in:
natsoni
2024-10-09 11:15:31 +09:00
parent 6884830da6
commit dd0542bbe1
8 changed files with 101 additions and 57 deletions

View File

@@ -707,7 +707,7 @@ class DatabaseMigration {
}
if (databaseSchemaVersion < 83 && isBitcoin === true) {
await this.$executeQuery('ALTER TABLE `blocks_audits` ADD first_seen timestamp(6) DEFAULT NULL');
await this.$executeQuery('ALTER TABLE `blocks` ADD first_seen datetime(6) DEFAULT NULL');
await this.updateToSchemaVersion(83);
}
}