fix🐛 :去掉迁移脚本中的数据库名称
This commit is contained in:
1 parent
6746dbd9cf
commit
5756286641
1 file changed
+2
-2
@@ -16,12 +16,12 @@ func init() {
|
||||
func _1615950701614Test(db *gorm.DB, version string) error {
|
||||
return db.Transaction(func(tx *gorm.DB) error {
|
||||
|
||||
err := tx.Exec("UPDATE test1db.sys_dict_data t SET t.dict_value = '2' WHERE t.dict_code = 16").Error
|
||||
err := tx.Exec("UPDATE sys_dict_data t SET t.dict_value = '2' WHERE t.dict_code = 16").Error
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
err = tx.Exec("UPDATE test1db.sys_opera_log t SET t.status = '2' WHERE t.status = '0'").Error
|
||||
err = tx.Exec("UPDATE sys_opera_log t SET t.status = '2' WHERE t.status = '0'").Error
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user