From 270179457f2468c1464241344bc70e2eee868146 Mon Sep 17 00:00:00 2001 From: Bujjibabukatta Date: Tue, 16 Jun 2026 10:55:39 +0530 Subject: [PATCH] fix(migrations): remove hard-coded bigint types for postgres --- .../20251123_add_scope_config_id_to_s3_slice.go | 2 +- .../20250629_add_scope_config_id_to_projects.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/plugins/q_dev/models/migrationscripts/20251123_add_scope_config_id_to_s3_slice.go b/backend/plugins/q_dev/models/migrationscripts/20251123_add_scope_config_id_to_s3_slice.go index fdeb1058398..df151e13ba6 100644 --- a/backend/plugins/q_dev/models/migrationscripts/20251123_add_scope_config_id_to_s3_slice.go +++ b/backend/plugins/q_dev/models/migrationscripts/20251123_add_scope_config_id_to_s3_slice.go @@ -26,7 +26,7 @@ import ( type addScopeConfigIdToS3Slice struct{} type QDevS3Slice20251123 struct { - ScopeConfigId uint64 `gorm:"type:BIGINT DEFAULT 0"` + ScopeConfigId uint64 `gorm:"default:0"` } func (QDevS3Slice20251123) TableName() string { diff --git a/backend/plugins/testmo/models/migrationscripts/20250629_add_scope_config_id_to_projects.go b/backend/plugins/testmo/models/migrationscripts/20250629_add_scope_config_id_to_projects.go index b13d1233cb0..c3d28458369 100644 --- a/backend/plugins/testmo/models/migrationscripts/20250629_add_scope_config_id_to_projects.go +++ b/backend/plugins/testmo/models/migrationscripts/20250629_add_scope_config_id_to_projects.go @@ -27,7 +27,7 @@ import ( type addScopeConfigIdToProjects struct{} type TestmoProject20250629 struct { - ScopeConfigId uint64 `gorm:"type:BIGINT NOT NULL DEFAULT 0"` + ScopeConfigId uint64 `gorm:"not null;default:0"` } func (TestmoProject20250629) TableName() string {