This is an automated email from the ASF dual-hosted git repository.

abeizn pushed a commit to branch release-v0.13
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


The following commit(s) were added to refs/heads/release-v0.13 by this push:
     new 310fae73 fix: cached plan must not change result type in postgres
310fae73 is described below

commit 310fae738fd92bb01a82684c84fa7b2a0f159b9c
Author: abeizn <[email protected]>
AuthorDate: Fri Sep 2 12:59:44 2022 +0800

    fix: cached plan must not change result type in postgres
---
 plugins/jira/models/migrationscripts/20220716_add_init_tables.go | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/plugins/jira/models/migrationscripts/20220716_add_init_tables.go 
b/plugins/jira/models/migrationscripts/20220716_add_init_tables.go
index defc0f15..8547d92d 100644
--- a/plugins/jira/models/migrationscripts/20220716_add_init_tables.go
+++ b/plugins/jira/models/migrationscripts/20220716_add_init_tables.go
@@ -93,7 +93,7 @@ func (*addInitTables) Up(ctx context.Context, db *gorm.DB) 
error {
        }
 
        // get connection history data
-       err = db.Migrator().AutoMigrate(&JiraConnectionTemp{})
+       err = db.Migrator().CreateTable(&JiraConnectionTemp{})
        if err != nil {
                return err
        }
@@ -145,6 +145,7 @@ func (*addInitTables) Up(ctx context.Context, db *gorm.DB) 
error {
        if err != nil {
                return err
        }
+
        err = db.Migrator().RenameTable(JiraConnectionTemp{}, 
archived.JiraConnection{})
        if err != nil {
                return err

Reply via email to