From aaa57b353fc6ab210447fd23024c13783b0c7f9b Mon Sep 17 00:00:00 2001 From: Dominic Renner Date: Wed, 6 Mar 2019 22:22:12 +0100 Subject: [PATCH] Update database.go --- database/database.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/database/database.go b/database/database.go index c065971..b23895c 100644 --- a/database/database.go +++ b/database/database.go @@ -63,20 +63,20 @@ func New(dbType string, uri string) (*Database, error) { return db, nil } -func (db *Database) CreateTables() error { - err := db.User.CreateTable() +func (db *Database) CreateTables(dbType string) error { + err := db.User.CreateTable(dbType) if err != nil { return err } - err = db.Portal.CreateTable() + err = db.Portal.CreateTable(dbType) if err != nil { return err } - err = db.Puppet.CreateTable() + err = db.Puppet.CreateTable(dbType) if err != nil { return err } - err = db.Message.CreateTable() + err = db.Message.CreateTable(dbType) if err != nil { return err }