mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-08 06:47:56 +00:00
feat: config setting to automatically set members/groups to private when creating
This commit is contained in:
parent
7c37726afb
commit
1ff6bb76cd
10 changed files with 140 additions and 24 deletions
7
PluralKit.Core/Database/Migrations/22.sql
Normal file
7
PluralKit.Core/Database/Migrations/22.sql
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
-- schema version 22
|
||||
-- automatically set members/groups as private when creating
|
||||
|
||||
alter table system_config add column member_default_private bool not null default false;
|
||||
alter table system_config add column group_default_private bool not null default false;
|
||||
|
||||
update info set schema_version = 22;
|
||||
|
|
@ -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 = 21;
|
||||
private const int TargetSchemaVersion = 22;
|
||||
private readonly ILogger _logger;
|
||||
|
||||
public DatabaseMigrator(ILogger logger)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue