mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-11-20 16:13:50 +08:00
Compare commits
1 Commits
477dcdc046
...
bf5bcd3eeb
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bf5bcd3eeb |
@@ -91,7 +91,7 @@ func (m *module) Install(ctx context.Context) (err error) {
|
|||||||
sqlExt = ".pg.sql"
|
sqlExt = ".pg.sql"
|
||||||
}
|
}
|
||||||
// 执行数据库安装文件
|
// 执行数据库安装文件
|
||||||
sqlPath := gfile.Pwd() + gfile.Separator + "addons/migrations/@{.name}/install"+sqlExt
|
sqlPath := gfile.Pwd() + gfile.Separator + "addons/migrations/@{.name}/uninstall"+sqlExt
|
||||||
result, err := migrations.DoSqlContent(ctx, sqlPath)
|
result, err := migrations.DoSqlContent(ctx, sqlPath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
g.Log().Error(ctx, "安装模块", m.skeleton.Label, "失败", err)
|
g.Log().Error(ctx, "安装模块", m.skeleton.Label, "失败", err)
|
||||||
|
|||||||
Reference in New Issue
Block a user