mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-07 06:17:55 +00:00
feat(apiv2): database changes
This commit is contained in:
parent
fb4aaad19f
commit
dbe040f852
10 changed files with 54 additions and 7 deletions
18
PluralKit.Core/Database/Migrations/18.sql
Normal file
18
PluralKit.Core/Database/Migrations/18.sql
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
-- schema version 18: 2021-09-26 --
|
||||
-- Add UUIDs for APIs
|
||||
|
||||
create extension if not exists pgcrypto;
|
||||
|
||||
alter table systems add column uuid uuid default gen_random_uuid();
|
||||
create index systems_uuid_idx on systems(uuid);
|
||||
|
||||
alter table members add column uuid uuid default gen_random_uuid();
|
||||
create index members_uuid_idx on members(uuid);
|
||||
|
||||
alter table switches add column uuid uuid default gen_random_uuid();
|
||||
create index switches_uuid_idx on switches(uuid);
|
||||
|
||||
alter table groups add column uuid uuid default gen_random_uuid();
|
||||
create index groups_uuid_idx on groups(uuid);
|
||||
|
||||
update info set schema_version = 18;
|
||||
Loading…
Add table
Add a link
Reference in a new issue