mirror of
https://github.com/mempool/mempool.git
synced 2025-01-19 14:45:28 +01:00
Change time field to datetime
This commit is contained in:
parent
5697486cea
commit
79bfe9c866
@ -7,7 +7,7 @@ import cpfpRepository from '../repositories/CpfpRepository';
|
|||||||
import { RowDataPacket } from 'mysql2';
|
import { RowDataPacket } from 'mysql2';
|
||||||
|
|
||||||
class DatabaseMigration {
|
class DatabaseMigration {
|
||||||
private static currentVersion = 77;
|
private static currentVersion = 78;
|
||||||
private queryTimeout = 3600_000;
|
private queryTimeout = 3600_000;
|
||||||
private statisticsAddedIndexed = false;
|
private statisticsAddedIndexed = false;
|
||||||
private uniqueLogs: string[] = [];
|
private uniqueLogs: string[] = [];
|
||||||
@ -669,6 +669,11 @@ class DatabaseMigration {
|
|||||||
await this.$executeQuery('ALTER TABLE `accelerations` ADD requested datetime DEFAULT NULL');
|
await this.$executeQuery('ALTER TABLE `accelerations` ADD requested datetime DEFAULT NULL');
|
||||||
await this.updateToSchemaVersion(77);
|
await this.updateToSchemaVersion(77);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (databaseSchemaVersion < 78) {
|
||||||
|
await this.$executeQuery('ALTER TABLE `prices` CHANGE `time` `time` datetime NOT NULL');
|
||||||
|
await this.updateToSchemaVersion(78);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user