🗃️ Remove foreign key constraint to improve dx

This commit is contained in:
LittleSheep 2024-11-19 22:38:48 +08:00
parent 95d1284e68
commit ae48597f96

View File

@ -24,7 +24,7 @@ func NewGorm() error {
Colorful: true,
IgnoreRecordNotFoundError: true,
LogLevel: lo.Ternary(viper.GetBool("debug.database"), logger.Info, logger.Silent),
})})
}), DisableForeignKeyConstraintWhenMigrating: true})
return err