Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Support RENAME INDEX for MySql dialect #5212

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

Merged

Conversation

orenkislev-faire
Copy link
Contributor

RENAME (INDEX|KEY) is supported since MySQL 5.7
https://dev.mysql.com/doc/refman/5.7/en/alter-table.html

);

ALTER TABLE animals
RENAME INDEX `unq_name` TO `unq_animals_name`,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you also add a second statement to this test which uses the new name of the index, like a drop index statement. Just want to make sure that you can reference the new name fine

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. Added

@AlecKazakova AlecKazakova merged commit 8d8eabc into sqldelight:master Apr 30, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants