From cdeee7ca0b6929e12cf15ec3824c87f3b5e93a10 Mon Sep 17 00:00:00 2001 From: HugoCasa Date: Wed, 15 May 2024 14:43:36 +0200 Subject: [PATCH] fix(backend): remove email constraints from DB (#3739) * fix(backend): allow underscore in email domain name * fix: remove email constraint --- ...5115413_add_underscore_to_proper_email_constraints.down.sql | 1 + ...515115413_add_underscore_to_proper_email_constraints.up.sql | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 backend/migrations/20240515115413_add_underscore_to_proper_email_constraints.down.sql create mode 100644 backend/migrations/20240515115413_add_underscore_to_proper_email_constraints.up.sql diff --git a/backend/migrations/20240515115413_add_underscore_to_proper_email_constraints.down.sql b/backend/migrations/20240515115413_add_underscore_to_proper_email_constraints.down.sql new file mode 100644 index 0000000000..d2f607c5b8 --- /dev/null +++ b/backend/migrations/20240515115413_add_underscore_to_proper_email_constraints.down.sql @@ -0,0 +1 @@ +-- Add down migration script here diff --git a/backend/migrations/20240515115413_add_underscore_to_proper_email_constraints.up.sql b/backend/migrations/20240515115413_add_underscore_to_proper_email_constraints.up.sql new file mode 100644 index 0000000000..66462d1faf --- /dev/null +++ b/backend/migrations/20240515115413_add_underscore_to_proper_email_constraints.up.sql @@ -0,0 +1,3 @@ +-- Add up migration script here +ALTER TABLE usr DROP CONSTRAINT proper_email; +ALTER TABLE workspace_invite DROP CONSTRAINT proper_email; \ No newline at end of file