Fix mysql and pg test connection

This commit is contained in:
Jim LAURIE 2019-02-04 15:39:47 +01:00 committed by GitHub
parent 5ed07cb27a
commit 8334ca6088
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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'
};