feat: config setting to default show/hide private info

This commit is contained in:
spiral
2021-12-06 04:01:42 -05:00
parent 455830a2b5
commit 32bea51e18
14 changed files with 71 additions and 17 deletions

View File

@@ -0,0 +1,6 @@
-- schema version 23
-- show/hide private information when looked up by linked accounts
alter table system_config add column show_private_info bool default true;
update info set schema_version = 23;

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