-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Mysql8 rename table #796
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: abort-missing-backend-tables
Are you sure you want to change the base?
Mysql8 rename table #796
Conversation
@@ -518,19 +518,23 @@ func (this *Migrator) cutOver() (err error) { | |||
} | |||
} | |||
} | |||
if this.migrationContext.CutOverType == base.CutOverAtomic { | |||
var cutOverFunc func() error | |||
if !mysql.IsSmallerMinorVersion(this.migrationContext.ApplierMySQLVersion, "8.0.13") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@raidivyansh074 let's allow the user to decide if they want this style of cut-over, at least for now
Could you please add a new cut-over type the command line here and here
The check for mysql.IsSmallerMinorVersion
could move to be a check at the start of the new cut-over type only
@@ -203,3 +204,47 @@ func GetTableColumns(db *gosql.DB, databaseName, tableName string) (*sql.ColumnL | |||
} | |||
return sql.NewColumnList(columnNames), sql.NewColumnList(virtualColumnNames), nil | |||
} | |||
|
|||
func versionTokens(version string, digits int) []int { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@raidivyansh074 I suggest we use https://github.com/hashicorp/go-version for this instead so there is less code to maintain into the future
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@raidivyansh074 thanks for the PR 🙇. There are some inline changes requested
Also, could you please open an issue and update the summary with this + a description of what is being solved here?
Adds traversing organizations you belong to for `git clone repo