Skip to content

Commit

Permalink
[liquid] fix broken migration
Browse files Browse the repository at this point in the history
  • Loading branch information
nymkappa committed Jun 5, 2024
1 parent 6b3005c commit 3db7a6a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion backend/src/api/database-migration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import cpfpRepository from '../repositories/CpfpRepository';
import { RowDataPacket } from 'mysql2';

class DatabaseMigration {
private static currentVersion = 79;
private static currentVersion = 80;
private queryTimeout = 3600_000;
private statisticsAddedIndexed = false;
private uniqueLogs: string[] = [];
Expand Down Expand Up @@ -686,6 +686,11 @@ class DatabaseMigration {
`);
await this.updateToSchemaVersion(79);
}

if (databaseSchemaVersion < 80 && isBitcoin === false) { // Add missing migration 17 to all database
await this.$executeQuery('ALTER TABLE `pools` ADD `slug` CHAR(50) NULL');
await this.updateToSchemaVersion(80);
}
}

/**
Expand Down

0 comments on commit 3db7a6a

Please sign in to comment.