Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

Fix the enabling of Postgres extension "citext" (#379)

Scott Wallaceb471a619d1af
diff --git a/prisma/migrations/20220414101318_remove_duplicate_emails/migration.sql b/prisma/migrations/20220414101318_remove_duplicate_emails/migration.sql
index bc69bad40..145955691 100644
--- a/prisma/migrations/20220414101318_remove_duplicate_emails/migration.sql
+++ b/prisma/migrations/20220414101318_remove_duplicate_emails/migration.sql
@@ -36,7 +36,7 @@ DELETE FROM "User" u
WHERE NOT EXISTS (SELECT * FROM "Poll" p WHERE u.id = p."userId");
-- Add citext extension
-CREATE EXTENSION citext;
+CREATE EXTENSION IF NOT EXISTS citext;
-- Change email to citext
ALTER TABLE "User"