Compare commits

...

2 Commits

Author SHA1 Message Date
osindex
477dcdc046 Merge 0a49dccb72 into 1688aaf371 2025-09-20 15:47:01 +08:00
osi
0a49dccb72 🐛 use install script 2025-09-20 15:38:18 +08:00

View File

@@ -91,7 +91,7 @@ func (m *module) Install(ctx context.Context) (err error) {
sqlExt = ".pg.sql"
}
// 执行数据库安装文件
sqlPath := gfile.Pwd() + gfile.Separator + "addons/migrations/@{.name}/uninstall"+sqlExt
sqlPath := gfile.Pwd() + gfile.Separator + "addons/migrations/@{.name}/install"+sqlExt
result, err := migrations.DoSqlContent(ctx, sqlPath)
if err != nil {
g.Log().Error(ctx, "安装模块", m.skeleton.Label, "失败", err)