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

Improving the MySQL developer experience with Nautobot #1514

Merged
merged 2 commits into from
Mar 18, 2022

Conversation

nniehoff
Copy link
Contributor

This PR makes it easier and faster to switch between postgres and MySQL database backends in your development environment. We do mainly 2 things here, first we name the database host 'db' across both postgres and MySQL environments so we don't have to change env vars. Secondly we grant the nautobot MySQL user permissions to create databases allowing the unit tests to pass.

Copy link
Contributor

@glennmatthews glennmatthews left a comment

Choose a reason for hiding this comment

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

A great refinement - thank you!

@@ -0,0 +1,2 @@
-- Allow the nautobot user to create databases, this is required to run unittests
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you know why this isn't needed in our CI environment? Is it because there we're defaulting to the root user instead of the nautobot user?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

development/dev.env Outdated Show resolved Hide resolved
@bryanculver
Copy link
Member

:shipit:

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