mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-11-19 23:53:46 +08:00
Compare commits
2 Commits
bf5bcd3eeb
...
477dcdc046
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
477dcdc046 | ||
|
|
0a49dccb72 |
@@ -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}/uninstall"+sqlExt
|
sqlPath := gfile.Pwd() + gfile.Separator + "addons/migrations/@{.name}/install"+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