🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.
Enhance SQL statements to prevent duplicate additions
Bill Yang90c7152d4bd2
diff --git a/server/drizzle/0005_sticky_gressill.sql b/server/drizzle/0005_sticky_gressill.sqlindex 5298d34db..db7b0b649 100644--- a/server/drizzle/0005_sticky_gressill.sql+++ b/server/drizzle/0005_sticky_gressill.sql@@ -1,2 +1,2 @@-ALTER TYPE "public"."import_platform_enum" ADD VALUE 'plausible';--> statement-breakpoint-ALTER TABLE "sites" ADD COLUMN "embed_enabled" boolean DEFAULT false;\ No newline at end of file+ALTER TYPE "public"."import_platform_enum" ADD VALUE IF NOT EXISTS 'plausible';--> statement-breakpoint+ALTER TABLE "sites" ADD COLUMN IF NOT EXISTS "embed_enabled" boolean DEFAULT false;