File size: 162 Bytes
05c5ed5
 
 
 
 
 
 
1
2
3
4
5
6
7
8
DO $$ BEGIN
ALTER TABLE "user" ADD COLUMN "preferences" json DEFAULT '{}'::json;
EXCEPTION
    WHEN duplicate_column THEN null;
END $$;
--> statement-breakpoint