mirror of
https://framagit.org/les/gancio.git
synced 2025-01-31 16:42:22 +01:00
ERROR: relation "users" does not exist
This commit is contained in:
parent
8b69a3cb0b
commit
cf71d17f2f
1 changed files with 2 additions and 1 deletions
|
@ -2,6 +2,7 @@ const Sequelize = require('sequelize')
|
|||
const Umzug = require('umzug')
|
||||
const path = require('path')
|
||||
const config = require('../../config')
|
||||
const { col } = require('../../helpers')
|
||||
const log = require('../../log')
|
||||
const settingsController = require('../controller/settings')
|
||||
|
||||
|
@ -30,7 +31,7 @@ const db = {
|
|||
return db.sequelize.authenticate()
|
||||
},
|
||||
async isEmpty () {
|
||||
const users = await db.sequelize.query('SELECT * from users').catch(e => {})
|
||||
const users = await db.sequelize.query(`SELECT * from ${col('users')}`).catch(e => {})
|
||||
return !(users && users.length)
|
||||
},
|
||||
async runMigrations () {
|
||||
|
|
Loading…
Reference in a new issue