From ecbc2dbf69f2734141a4f69eb2749b2b502152fb Mon Sep 17 00:00:00 2001 From: valitovgaziz Date: Sat, 27 Sep 2025 06:01:08 +0500 Subject: [PATCH] modified: pkg/database/postgres.go name AutoMigrate to autoMigrate --- 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 9c250a3..3bc7947 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