mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-16 10:40:12 +00:00
fix: remove unused database functions
This commit is contained in:
parent
83d1a08aaf
commit
5d86814415
2 changed files with 8 additions and 1 deletions
7
PluralKit.Core/Database/Migrations/49.sql
Normal file
7
PluralKit.Core/Database/Migrations/49.sql
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
-- database version 47
|
||||||
|
-- remove unused functions
|
||||||
|
|
||||||
|
drop function trg_msgcount_decrement cascade;
|
||||||
|
drop function trg_msgcount_increment cascade;
|
||||||
|
|
||||||
|
update info set schema_version = 49;
|
||||||
|
|
@ -9,7 +9,7 @@ namespace PluralKit.Core;
|
||||||
internal class DatabaseMigrator
|
internal class DatabaseMigrator
|
||||||
{
|
{
|
||||||
private const string RootPath = "PluralKit.Core.Database"; // "resource path" root for SQL files
|
private const string RootPath = "PluralKit.Core.Database"; // "resource path" root for SQL files
|
||||||
private const int TargetSchemaVersion = 48;
|
private const int TargetSchemaVersion = 49;
|
||||||
private readonly ILogger _logger;
|
private readonly ILogger _logger;
|
||||||
|
|
||||||
public DatabaseMigrator(ILogger logger)
|
public DatabaseMigrator(ILogger logger)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue