From 130eef8987ccc9fe08b32f7a1d87ea28c53b4b09 Mon Sep 17 00:00:00 2001 From: Nancy Huang <205217630+naanci@users.noreply.github.com> Date: Sun, 27 Sep 2026 17:37:36 -0400 Subject: [PATCH 1/2] TAN-987-fix: remove check/contraints for null for updates --- .../V0081__Drop_createdAt_not_null_constraints.SQL | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 db/migration/V0081__Drop_createdAt_not_null_constraints.SQL diff --git a/db/migration/V0081__Drop_createdAt_not_null_constraints.SQL b/db/migration/V0081__Drop_createdAt_not_null_constraints.SQL new file mode 100644 index 000000000..66c63100e --- /dev/null +++ b/db/migration/V0081__Drop_createdAt_not_null_constraints.SQL @@ -0,0 +1,7 @@ +SET LOCAL lock_timeout = '5s'; + +ALTER TABLE "User" +DROP CONSTRAINT "ck_user_createdAt_not_null"; + +ALTER TABLE "Session" +DROP CONSTRAINT "ck_session_createdAt_not_null"; From 090a5edd8682f9891286f94e9d93e7688abb9d6c Mon Sep 17 00:00:00 2001 From: Nancy Huang <205217630+naanci@users.noreply.github.com> Date: Mon, 28 Sep 2026 11:25:37 -0400 Subject: [PATCH 2/2] TAN-987-fix: remove unneeded timeout --- db/migration/V0081__Drop_createdAt_not_null_constraints.SQL | 2 -- 1 file changed, 2 deletions(-) diff --git a/db/migration/V0081__Drop_createdAt_not_null_constraints.SQL b/db/migration/V0081__Drop_createdAt_not_null_constraints.SQL index 66c63100e..1a5dee5d5 100644 --- a/db/migration/V0081__Drop_createdAt_not_null_constraints.SQL +++ b/db/migration/V0081__Drop_createdAt_not_null_constraints.SQL @@ -1,5 +1,3 @@ -SET LOCAL lock_timeout = '5s'; - ALTER TABLE "User" DROP CONSTRAINT "ck_user_createdAt_not_null";