1
0
mirror of https://github.com/raseels-repos/golang-saas-starter-kit.git synced 2025-06-15 00:15:15 +02:00

finish internal/user user and auth unittests

This commit is contained in:
Lee Brown
2019-05-28 04:44:01 -05:00
parent 895128bbbe
commit c121b7d289
11 changed files with 913 additions and 471 deletions

View File

@ -4,7 +4,7 @@ import (
"database/sql"
"log"
"github.com/gitwak/sqlxmigrate"
"github.com/geeks-accelerator/sqlxmigrate"
"github.com/jmoiron/sqlx"
_ "github.com/lib/pq"
"github.com/pkg/errors"
@ -106,7 +106,7 @@ func migrationList(db *sqlx.DB, log *log.Logger) []*sqlxmigrate.Migration {
{
ID: "20190522-01c",
Migrate: func(tx *sql.Tx) error {
q1 := `CREATE TYPE user_account_role_t as enum('admin', 'user')`
q1 := `CREATE TYPE user_account_role_t as enum('ADMIN', 'USER')`
if _, err := tx.Exec(q1); err != nil {
return errors.WithMessagef(err, "Query failed %s", q1)
}