mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-10-08 19:16:39 +08:00
🐛 use install script
This commit is contained in:
parent
f254132e18
commit
0a49dccb72
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user