mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
fix: store stat counts as bigint
This commit is contained in:
parent
3fe41ecac5
commit
4e8141007f
2 changed files with 11 additions and 1 deletions
10
PluralKit.Core/Database/Migrations/41.sql
Normal file
10
PluralKit.Core/Database/Migrations/41.sql
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
-- database version 41
|
||||
-- fix statistics counts
|
||||
|
||||
alter table info alter column system_count type bigint using system_count::bigint;
|
||||
alter table info alter column member_count type bigint using member_count::bigint;
|
||||
alter table info alter column group_count type bigint using group_count::bigint;
|
||||
alter table info alter column switch_count type bigint using switch_count::bigint;
|
||||
alter table info alter column message_count type bigint using message_count::bigint;
|
||||
|
||||
update info set schema_version = 41;
|
||||
|
|
@ -9,7 +9,7 @@ namespace PluralKit.Core;
|
|||
internal class DatabaseMigrator
|
||||
{
|
||||
private const string RootPath = "PluralKit.Core.Database"; // "resource path" root for SQL files
|
||||
private const int TargetSchemaVersion = 40;
|
||||
private const int TargetSchemaVersion = 41;
|
||||
private readonly ILogger _logger;
|
||||
|
||||
public DatabaseMigrator(ILogger logger)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue