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

refactor(treewide): use mariadb commands and service instead of mysql #1489

Merged
merged 1 commit into from
Oct 10, 2023

Conversation

akhilnarang
Copy link
Member

refactor: use mariadb commands and service instead of mysql

This resolves #1472

This has been done because the mysql command issues a deprecation warning now
mysql: Deprecated program name. It will be removed in a future release, use '/usr/bin/mariadb' instead

@@ -358,7 +358,7 @@ def sync_domains(domain=None, site=None):
@click.command("role", help="Install dependencies via ansible roles")
@click.argument("role")
@click.option("--admin_emails", default="")
@click.option("--mysql_root_password")
@click.option("--mariadb_root_password")
Copy link
Member

Choose a reason for hiding this comment

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

We shouldn't change this, this can be breaking change for some scripts.

Add another alias for same flag? IIRC click does support that.

Copy link
Member Author

@akhilnarang akhilnarang Oct 10, 2023

Choose a reason for hiding this comment

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

Ah cool, will do that.
Wanted to ask anyway, there's a lot of reference to MySQL in general in a few places like this, so for now should we leave them as-is or add secondary option with mariadb like this?

Copy link
Member Author

Choose a reason for hiding this comment

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

Added as aliases. Left variable names and dict keys intact so that it won't cause any issues.

@sonarcloud
Copy link

sonarcloud bot commented Oct 10, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@ankush ankush merged commit 96f1229 into frappe:develop Oct 10, 2023
14 checks passed
@akhilnarang akhilnarang deleted the mysql-to-mariadb branch October 11, 2023 05:49
@github-actions
Copy link

🎉 This PR is included in version 5.18.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

mysql: Deprecated program name. It will be removed in a future release, use '/usr/bin/mariadb' instead
2 participants