From a24cac773b9abeb8ae6e24d628f5d1a243c41cc4 Mon Sep 17 00:00:00 2001 From: valitovgaziz Date: Sat, 27 Sep 2025 05:59:49 +0500 Subject: [PATCH] modified: pkg/database/postgres.go some last commmit --- serv_golang_rest_api/pkg/database/postgres.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/serv_golang_rest_api/pkg/database/postgres.go b/serv_golang_rest_api/pkg/database/postgres.go index 3bc7947..9c250a3 100644 --- a/serv_golang_rest_api/pkg/database/postgres.go +++ b/serv_golang_rest_api/pkg/database/postgres.go @@ -28,7 +28,7 @@ func NewPostgresConnection(cfg *config.Config) (*gorm.DB, error) { return db, nil } -func autoMigrate(db *gorm.DB) error { +func AutoMigrate(db *gorm.DB) error { // Сначала добавляем колонку как NULLABLE if err := db.Exec(`ALTER TABLE users ADD COLUMN IF NOT EXISTS password VARCHAR(255)`).Error; err != nil { return err