From 21e7891f9bdb6f4066547a78f48c3d7509a4e803 Mon Sep 17 00:00:00 2001 From: Sacha Al Himdani Date: Tue, 3 Jun 2025 15:46:22 -0700 Subject: [PATCH] Remove default values in db Signed-off-by: Sacha Al Himdani --- pkg/coredata/migrations/20250603T223629Z.sql | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 pkg/coredata/migrations/20250603T223629Z.sql diff --git a/pkg/coredata/migrations/20250603T223629Z.sql b/pkg/coredata/migrations/20250603T223629Z.sql new file mode 100644 index 000000000..2cc4ad868 --- /dev/null +++ b/pkg/coredata/migrations/20250603T223629Z.sql @@ -0,0 +1,5 @@ +ALTER TABLE assets ALTER COLUMN asset_type DROP DEFAULT; +ALTER TABLE assets ALTER COLUMN criticity DROP DEFAULT; +ALTER TABLE assets ALTER COLUMN criticity SET NOT NULL; +ALTER TABLE documents ALTER COLUMN document_type DROP DEFAULT; +ALTER TABLE users_organizations ALTER COLUMN created_at DROP DEFAULT;