unfinished draft

This commit is contained in:
wish
2024-08-21 21:04:52 +10:00
parent 7d760bd3b4
commit c8d3fc3ead
17 changed files with 484 additions and 820 deletions

View File

@@ -0,0 +1,26 @@
BEGIN;
ALTER TABLE IF EXISTS public.guild_applications DROP COLUMN IF EXISTS actor_id;
ALTER TABLE IF EXISTS public.guild_applications DROP COLUMN IF EXISTS application_type;
ALTER TABLE IF EXISTS public.guild_applications
ALTER COLUMN created_at DROP NOT NULL;
ALTER TABLE IF EXISTS public.guild_applications DROP CONSTRAINT IF EXISTS guild_applications_actor_id_fkey;
create table public.guild_invites (
id serial primary key,
guild_id integer,
character_id integer,
actor_id integer,
created_at timestamp with time zone not null default now(),
foreign key (guild_id) references guilds (id),
foreign key (character_id) references characters (id),
foreign key (actor_id) references characters (id)
);
drop type if exists guild_application_type;
ALTER TABLE IF EXISTS public.mail DROP CONSTRAINT IF EXISTS mail_sender_id_fkey;
END;