From d87c690916911ca7f96a02eb4506130a86e81a94 Mon Sep 17 00:00:00 2001 From: Hitenjain14 Date: Thu, 23 May 2024 14:36:47 +0530 Subject: [PATCH 1/2] increse filename limit to 150 --- goose/migrations/1716455063_ref_name_length.sql | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 goose/migrations/1716455063_ref_name_length.sql diff --git a/goose/migrations/1716455063_ref_name_length.sql b/goose/migrations/1716455063_ref_name_length.sql new file mode 100644 index 000000000..47ebd97d2 --- /dev/null +++ b/goose/migrations/1716455063_ref_name_length.sql @@ -0,0 +1,4 @@ +-- +goose Up +-- +goose StatementBegin +ALTER TABLE reference_objects ALTER COLUMN name TYPE character varying(150) NOT NULL; +-- +goose StatementEnd \ No newline at end of file From 8505fc952ed7fbdc6163ec39679da0a6acb0f0d1 Mon Sep 17 00:00:00 2001 From: Hitenjain14 Date: Thu, 23 May 2024 15:16:03 +0530 Subject: [PATCH 2/2] fix query --- goose/migrations/1716455063_ref_name_length.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/goose/migrations/1716455063_ref_name_length.sql b/goose/migrations/1716455063_ref_name_length.sql index 47ebd97d2..9843ab42a 100644 --- a/goose/migrations/1716455063_ref_name_length.sql +++ b/goose/migrations/1716455063_ref_name_length.sql @@ -1,4 +1,5 @@ -- +goose Up -- +goose StatementBegin -ALTER TABLE reference_objects ALTER COLUMN name TYPE character varying(150) NOT NULL; +ALTER TABLE reference_objects ALTER COLUMN name TYPE character varying(150), +ALTER COLUMN name SET NOT NULL; -- +goose StatementEnd \ No newline at end of file