mirror of
https://github.com/Mezeporta/Erupe.git
synced 2025-12-12 23:14:36 +01:00
13 lines
294 B
PL/PgSQL
13 lines
294 B
PL/PgSQL
BEGIN;
|
|
|
|
ALTER TABLE IF EXISTS public.mail
|
|
ADD COLUMN IF NOT EXISTS is_sys_message bool DEFAULT false;
|
|
|
|
UPDATE mail SET is_sys_message=false;
|
|
|
|
ALTER TABLE IF EXISTS public.mail
|
|
DROP CONSTRAINT IF EXISTS mail_sender_id_fkey;
|
|
|
|
INSERT INTO public.characters (id, name) VALUES (0, '');
|
|
|
|
END; |