Fix second_factor_method creation length

- mobile_push is 11 characters long, but db init sets it to 10.
pull/506/head
James Elliott 2019-12-19 14:56:16 +11:00 committed by Clément Michaud
parent a189c28af3
commit f3cf092433
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ type SQLProvider struct {
func (p *SQLProvider) initialize(db *sql.DB) error {
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 {
return err
}