mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-06 22:07:55 +00:00
Store stard status in the database
This commit is contained in:
parent
26dc69e5a4
commit
ae9ed0f4ee
5 changed files with 103 additions and 13 deletions
15
PluralKit.Core/Database/Migrations/14.sql
Normal file
15
PluralKit.Core/Database/Migrations/14.sql
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
-- SCHEMA VERSION 14: 2021-06-10 --
|
||||
-- Add shard status table --
|
||||
|
||||
create table shards (
|
||||
id int not null primary key,
|
||||
|
||||
-- 0 = down, 1 = up
|
||||
status smallint not null default 0,
|
||||
|
||||
ping float,
|
||||
last_heartbeat timestamptz,
|
||||
last_connection timestamptz
|
||||
);
|
||||
|
||||
update info set schema_version = 14;
|
||||
Loading…
Add table
Add a link
Reference in a new issue