Merge pull request #4950 from mempool/natsoni/fix-timestamp-datetime

Update prices table  'time' field to datetime
This commit is contained in:
softsimon 2024-04-11 21:07:26 +09:00 committed by GitHub
commit 1c29b8b260
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7,7 +7,7 @@ import cpfpRepository from '../repositories/CpfpRepository';
import { RowDataPacket } from 'mysql2';
class DatabaseMigration {
private static currentVersion = 77;
private static currentVersion = 78;
private queryTimeout = 3600_000;
private statisticsAddedIndexed = false;
private uniqueLogs: string[] = [];
@ -669,6 +669,11 @@ class DatabaseMigration {
await this.$executeQuery('ALTER TABLE `accelerations` ADD requested datetime DEFAULT NULL');
await this.updateToSchemaVersion(77);
}
if (databaseSchemaVersion < 78) {
await this.$executeQuery('ALTER TABLE `prices` CHANGE `time` `time` datetime NOT NULL');
await this.updateToSchemaVersion(78);
}
}
/**