feat: system pronouns (#429)

This commit is contained in:
Jake Fulmine 2022-03-23 19:20:16 +01:00 committed by GitHub
parent 062835e0c5
commit 7efe6f1f97
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 99 additions and 2 deletions

View file

@ -0,0 +1,7 @@
-- schema version 28
-- system pronouns
alter table systems add column pronouns text;
alter table systems add column pronoun_privacy integer check (pronoun_privacy in (1, 2)) not null default 1;
update info set schema_version = 28;

View file

@ -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 = 27;
private const int TargetSchemaVersion = 28;
private readonly ILogger _logger;
public DatabaseMigrator(ILogger logger)