Skip to content

AutoMigrateを無効化#23

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

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

Conversation

@kantacky
Copy link
Copy Markdown
Member

No description provided.

@kantacky kantacky self-assigned this May 10, 2026
@kantacky kantacky marked this pull request as ready for review May 10, 2026 09:18
Copy link
Copy Markdown

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 を無効化し、アプリケーション起動によるDBスキーマ変更を止める変更です(スキーマ作成/更新をアプリとは別の運用手段に寄せたい意図と思われます)。

Changes:

  • cmd/server/main.go の起動処理から database.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 +49 to +51
// 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