-
-
Notifications
You must be signed in to change notification settings - Fork 525
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
Add db:create and db:drop support for MariaDB #934
base: main
Are you sure you want to change the base?
Add db:create and db:drop support for MariaDB #934
Conversation
Hi, thanks for submitting this PR. And our apologies for the late response. Are you still willing to add some tests to this? |
I was trying to fix this problem but I have found inconsistencies in how
// `mysql`, `pgsql` and `sqlite`
showTableNames() -> ['tableA', 'tableB', ...]
// `mariadb` and `mssql`
showTableNames() -> [{tableName: 'tableA', schema: 'schemaX}, {tableName: 'tableB', schema: 'scehmaX}, ...] So, I could write tests to handle this inconsistencies thus making the EDIT: I have tried to run the tests against a MSSQL database using the docker image provided by Microsoft and indeed the tests are failing due to the same reason that the returned list of table names is a list of objects and not a simple list of strings (names). |
Hi. Thanks for looking into this! |
Hi, just want to check if there will be an update on reviewing this |
For God's sake, someone please, accept this MR. Furthermore Refers to index.js: |
Pull Request check-list
Please make sure to review and check all of these items:
npm run test
pass with this change (including linting)?No, but linting issues are unrelated to my change.
I have db drop and create tests that pass. Some of the other pre-existing tests do not pass locally for me.
Description of change
Adds support for db:create and db:drop for MariaDB. This uses the same code block as MySQL since they are compatible.
I can push up the tests if you want. It's just an extra
if (Support.dialectIsMariaDB()) {
in the db-create and db-drop test files.Closes #1236