Fix second_factor_method creation length
- mobile_push is 11 characters long, but db init sets it to 10.pull/506/head
parent
a189c28af3
commit
f3cf092433
|
@ -34,7 +34,7 @@ type SQLProvider struct {
|
||||||
func (p *SQLProvider) initialize(db *sql.DB) error {
|
func (p *SQLProvider) initialize(db *sql.DB) error {
|
||||||
p.db = db
|
p.db = db
|
||||||
|
|
||||||
_, err := db.Exec(fmt.Sprintf("CREATE TABLE IF NOT EXISTS %s (username VARCHAR(100) PRIMARY KEY, second_factor_method VARCHAR(10))", preferencesTableName))
|
_, err := db.Exec(fmt.Sprintf("CREATE TABLE IF NOT EXISTS %s (username VARCHAR(100) PRIMARY KEY, second_factor_method VARCHAR(11))", preferencesTableName))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue