You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by zh...@apache.org on 2022/06/15 07:54:42 UTC
[incubator-devlake] branch main updated: fix: migration table name error (#2198)
This is an automated email from the ASF dual-hosted git repository.
zhangliang2022 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/main by this push:
new f3b9ab01 fix: migration table name error (#2198)
f3b9ab01 is described below
commit f3b9ab016fab171d933a761870ed481c1e9e9a84
Author: NaRro <co...@merico.dev>
AuthorDate: Wed Jun 15 15:54:37 2022 +0800
fix: migration table name error (#2198)
---
models/migrationscripts/updateSchemas2022061402.go | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/models/migrationscripts/updateSchemas2022061402.go b/models/migrationscripts/updateSchemas2022061402.go
index 928f23f5..1e013ec3 100644
--- a/models/migrationscripts/updateSchemas2022061402.go
+++ b/models/migrationscripts/updateSchemas2022061402.go
@@ -41,6 +41,10 @@ type Changelog20220614 struct {
CreatedDate time.Time
}
+func (Changelog20220614) TableName() string {
+ return "changelogs"
+}
+
type updateSchemas2022061402 struct{}
func (*updateSchemas2022061402) Up(ctx context.Context, db *gorm.DB) error {