abeizn commented on code in PR #2950:
URL: https://github.com/apache/incubator-devlake/pull/2950#discussion_r962631310


##########
plugins/jira/models/migrationscripts/20220716_add_init_tables.go:
##########
@@ -99,8 +117,15 @@ func (*addInitTables) Up(ctx context.Context, db *gorm.DB) 
error {
        }
        defer db.Migrator().DropTable(&JiraConnectionTemp{})
 
+       // cached plan must not change result type in postgres, so need to 
update db name
+       err = db.Migrator().RenameTable(JiraConnectionV011{}, 
JiraConnectionV011Bak{})

Review Comment:
   > Seems like we could pass the table name as `string` directly, will it be 
simpler? 
![image](https://user-images.githubusercontent.com/61080/188398289-e97743da-406b-4f24-9a6c-770a31f04fc2.png)
   
   updated



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to