Update user.go

This commit is contained in:
Dominic Renner 2019-03-06 22:23:15 +01:00 committed by GitHub
parent c1e20f96d0
commit 539699ba04

View file

@ -33,7 +33,7 @@ type UserQuery struct {
log log.Logger log log.Logger
} }
func (uq *UserQuery) CreateTable() error { func (uq *UserQuery) CreateTable(dbType string) error {
_, err := uq.db.Exec(`CREATE TABLE IF NOT EXISTS whatsapp_user ( _, err := uq.db.Exec(`CREATE TABLE IF NOT EXISTS whatsapp_user (
mxid VARCHAR(255) PRIMARY KEY, mxid VARCHAR(255) PRIMARY KEY,
jid VARCHAR(255) UNIQUE, jid VARCHAR(255) UNIQUE,