Skip to content
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

Update to mysql2 #179

Closed
wants to merge 3 commits into from
Closed

Update to mysql2 #179

wants to merge 3 commits into from

Conversation

McSneaky
Copy link
Contributor

πŸ”— Linked issue

❓ Type of change

  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

Updating to mysql2 allows to use MySQL 8 and above. There's been issue opened in mysql repo, but seems like it's stale mysqljs/mysql#1959

mysql2 is API compatible with mysql so there really shouldn't be any breaking changes

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@thetutlage
Copy link
Member

Cool. Can you please also send a PR for the Lucid repo. We have to update the client inside the config file to mysql2 and also install mysql2 dialect.

https://github.com/adonisjs/lucid/blob/develop/templates/database.txt#L72
https://github.com/adonisjs/lucid/blob/develop/instructions.ts#L82

@McSneaky
Copy link
Contributor Author

Added: adonisjs/lucid#871

@McSneaky
Copy link
Contributor Author

Is there need for another dialect tho? Since it's drop in replacement and seems to be already added
https://github.com/adonisjs/lucid/blob/5d006b8013c415a53d0b250dc9de59c473cf1fcd/src/Dialects/index.ts#L21

@thetutlage
Copy link
Member

Is there need for another dialect tho? Since it's drop in replacement and seems to be already added

Oh yeah, I changed that to see if all of our tests are green. If yes, then we can use mysql2 in tests and also recommend it as the default dialect

@RomainLanz
Copy link
Member

RomainLanz commented Oct 22, 2022

Oops, I have done it by myself! πŸ˜…

@RomainLanz RomainLanz closed this Oct 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants