Skip to content

Commit 9e6414f

Browse files
author
pixel
committed
根据gorm调整初始化数据 sys_data_authority_ids -> sys_data_authority_id
1 parent 095b2ff commit 9e6414f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/gva/init_data/init_data.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ func InitSysDataAuthorityId() (err error) {
411411
{"9528", "8881"},
412412
{"9528", "9528"},
413413
}
414-
if tx.Table("sys_data_authority_ids").Create(&insert).Error != nil { // 遇到错误时回滚事务
414+
if tx.Table("sys_data_authority_id").Create(&insert).Error != nil { // 遇到错误时回滚事务
415415
tx.Rollback()
416416
}
417417
return tx.Commit().Error

0 commit comments

Comments
 (0)