Skip to content

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

Open
wants to merge 5 commits into
base: abort-missing-backend-tables
Choose a base branch
from

Conversation

raidivyansh074
Copy link

Adds traversing organizations you belong to for `git clone repo

@@ -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") {
Copy link
Collaborator

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 {
Copy link
Collaborator

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

Copy link
Collaborator

@timvaillancourt timvaillancourt left a 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?

@timvaillancourt timvaillancourt modified the milestones: v1.1.7, v1.1.8 Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants