klesh commented on code in PR #2950:
URL: https://github.com/apache/incubator-devlake/pull/2950#discussion_r962762482
##########
plugins/jira/models/migrationscripts/20220716_add_init_tables.go:
##########
@@ -92,61 +94,79 @@ func (*addInitTables) Up(ctx context.Context, db *gorm.DB)
error {
return err
}
- // get connection history data
- err = db.Migrator().CreateTable(&JiraConnectionTemp{})
+ // due to cached plan must not change result type in postgres,
+ // so need to use JiraConnectionOld, JiraConnectionNew and
JiraConnection to operate.
Review Comment:
In order to avoid postgres reporting "cached plan must not change result
type", we have to avoid loading the `_tool_jira_connections` table before our
migration. The trick is to rename it before loading.
--
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]