Skip to content

AutoMigrateを無効化#52

Open
kantacky wants to merge 1 commit into
mainfrom
disable-auto-migrate
Open

AutoMigrateを無効化#52
kantacky wants to merge 1 commit into
mainfrom
disable-auto-migrate

Conversation

@kantacky
Copy link
Copy Markdown
Member

No description provided.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

サーバ起動時に実行していた GORM の AutoMigrate を無効化し、起動時の自動スキーマ変更を行わない運用に寄せるPRです。

Changes:

  • cmd/server/main.godatabase.AutoMigrate(db) 呼び出しをコメントアウトし、起動時マイグレーションを停止

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread cmd/server/main.go
Comment on lines +50 to +52
// if err := database.AutoMigrate(db); err != nil {
// log.Fatalf("Failed to migrate database: %v", err)
// }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants