#1191·migrate

同一个迁移文件中有多个 SQL 语句,会因为换行导致失败

作者: soham-suki创建于 2024年11月6日更新于 2026年9月22日

Describe the Bug If a migration file contains multiple SQL statements separated by newlines, running the migration in go using m.Up() results in the migration failing and schema_migrations being dirty.

内容来源: golang-migrate/migrate