mirror of
https://github.com/strapi/strapi.git
synced 2025-12-27 23:24:03 +00:00
Fix mysql and pg test connection
This commit is contained in:
parent
5ed07cb27a
commit
8334ca6088
@ -33,8 +33,8 @@ module.exports = (scope, success, error) => {
|
||||
|
||||
knex.raw('select 1+1 as result').then(() => {
|
||||
const selectQueries = {
|
||||
mysql: 'SELECT tablename FROM pg_tables WHERE schemaname=\'public\'',
|
||||
postgres: 'SELECT * FROM information_schema.tables',
|
||||
postgres: 'SELECT tablename FROM pg_tables WHERE schemaname=\'public\'',
|
||||
mysql: 'SELECT * FROM information_schema.tables',
|
||||
sqlite: 'select * from sqlite_master'
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user