Rename database upgrade.
This commit is contained in:
parent
3f6b714506
commit
5f9ece8e0a
|
@ -5,7 +5,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
upgrades[20] = upgrade{"Add password columns to user table.", func(tx *sql.Tx, c context) error {
|
upgrades[20] = upgrade{"Add password column to user table.", func(tx *sql.Tx, c context) error {
|
||||||
if c.dialect == Postgres {
|
if c.dialect == Postgres {
|
||||||
_, err := tx.Exec(`ALTER TABLE "user" ADD COLUMN password VARCHAR(255)`)
|
_, err := tx.Exec(`ALTER TABLE "user" ADD COLUMN password VARCHAR(255)`)
|
||||||
if err != nil {
|
if err != nil {
|
Loading…
Reference in New Issue