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

fix(mysql)!: look for *.sql files in the top-level schema directory #154

Merged
merged 1 commit into from
Mar 18, 2024

Conversation

shivaraj-bh
Copy link
Member

  • mysql service would assume that all the *.sql files in the directory, provided by initialDatabases [{ schema = <directory>; ... }], exists in a folder named mysql-databases, after this change it would just look for all the *.sql files in the top-level schema directory.
  • add tests

* mysql service would assume that all the `*.sql` files in the directory,
provided by `initialDatabases [{ schema = <directory>; ... }]`, exists in a
folder named [mysql-databases](https://github.com/juspay/services-flake/blob/291e7be83aa0f24b8e40fc61df4a895827788707/nix/mysql.nix#L239-L241),
after this change it would just look for all the `*.sql` files in the top-level schema directory.
* add tests
@shivaraj-bh shivaraj-bh merged commit f158353 into main Mar 18, 2024
4 checks passed
@shivaraj-bh shivaraj-bh deleted the mysql-schema-dir branch March 18, 2024 17:02
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.

2 participants