Skip to content

Commit 2701794

Browse files
fix(migrations): remove hard-coded bigint types for postgres
1 parent 50010e0 commit 2701794

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

backend/plugins/q_dev/models/migrationscripts/20251123_add_scope_config_id_to_s3_slice.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import (
2626
type addScopeConfigIdToS3Slice struct{}
2727

2828
type QDevS3Slice20251123 struct {
29-
ScopeConfigId uint64 `gorm:"type:BIGINT DEFAULT 0"`
29+
ScopeConfigId uint64 `gorm:"default:0"`
3030
}
3131

3232
func (QDevS3Slice20251123) TableName() string {

backend/plugins/testmo/models/migrationscripts/20250629_add_scope_config_id_to_projects.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import (
2727
type addScopeConfigIdToProjects struct{}
2828

2929
type TestmoProject20250629 struct {
30-
ScopeConfigId uint64 `gorm:"type:BIGINT NOT NULL DEFAULT 0"`
30+
ScopeConfigId uint64 `gorm:"not null;default:0"`
3131
}
3232

3333
func (TestmoProject20250629) TableName() string {

0 commit comments

Comments
 (0)