mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-11 08:10:10 +00:00
feat: add basic premium scaffolding
Some checks failed
Build and push Rust service Docker images / rust docker build (push) Waiting to run
rust checks / cargo fmt (push) Waiting to run
Build and push Docker image / .net docker build (push) Has been cancelled
.net checks / run .net tests (push) Has been cancelled
.net checks / dotnet-format (push) Has been cancelled
Some checks failed
Build and push Rust service Docker images / rust docker build (push) Waiting to run
rust checks / cargo fmt (push) Waiting to run
Build and push Docker image / .net docker build (push) Has been cancelled
.net checks / run .net tests (push) Has been cancelled
.net checks / dotnet-format (push) Has been cancelled
This commit is contained in:
parent
3978352094
commit
1a9ccdb88d
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