🗃️ Remove foreign key constraint to improve dx
This commit is contained in:
parent
95d1284e68
commit
ae48597f96
@ -24,7 +24,7 @@ func NewGorm() error {
|
|||||||
Colorful: true,
|
Colorful: true,
|
||||||
IgnoreRecordNotFoundError: true,
|
IgnoreRecordNotFoundError: true,
|
||||||
LogLevel: lo.Ternary(viper.GetBool("debug.database"), logger.Info, logger.Silent),
|
LogLevel: lo.Ternary(viper.GetBool("debug.database"), logger.Info, logger.Silent),
|
||||||
})})
|
}), DisableForeignKeyConstraintWhenMigrating: true})
|
||||||
|
|
||||||
return err
|
return err
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user