mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-07 14:27:54 +00:00
feat: add basic premium scaffolding
This commit is contained in:
parent
578c09c216
commit
5e462a0ca2
8 changed files with 70 additions and 2 deletions
7
crates/migrate/data/migrations/54.sql
Normal file
7
crates/migrate/data/migrations/54.sql
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
-- database version 54
|
||||
-- initial support for premium
|
||||
|
||||
alter table system_config add column premium_until timestamp;
|
||||
alter table system_config add column premium_lifetime bool default false;
|
||||
|
||||
update info set schema_version = 54;
|
||||
|
|
@ -1,3 +1,4 @@
|
|||
use chrono::NaiveDateTime;
|
||||
use pk_macros::pk_model;
|
||||
|
||||
use sqlx::{postgres::PgTypeInfo, Database, Decode, Postgres, Type};
|
||||
|
|
@ -87,4 +88,8 @@ struct SystemConfig {
|
|||
name_format: Option<String>,
|
||||
#[json = "description_templates"]
|
||||
description_templates: Vec<String>,
|
||||
#[json = "premium_until"]
|
||||
premium_until: Option<NaiveDateTime>,
|
||||
#[json = "premium_lifetime"]
|
||||
premium_lifetime: bool
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue