Add missing migrations

This commit is contained in:
Till Faelligen 2022-02-21 12:15:56 +01:00
parent 2e6987f8bd
commit cb4526793d
3 changed files with 2 additions and 6 deletions

View file

@ -45,6 +45,7 @@ func NewDatabase(dbProperties *config.DatabaseOptions, serverName gomatrixserver
deltas.LoadIsActive(m)
//deltas.LoadLastSeenTSIP(m)
deltas.LoadAddAccountType(m)
deltas.LoadAddPolicyVersion(m)
if err = m.RunDeltas(db, dbProperties); err != nil {
return nil, err
}

View file

@ -4,15 +4,9 @@ import (
"database/sql"
"fmt"
"github.com/pressly/goose"
"github.com/matrix-org/dendrite/internal/sqlutil"
)
func init() {
goose.AddMigration(UpAddAccountType, DownAddAccountType)
}
func LoadAddAccountType(m *sqlutil.Migrations) {
m.AddMigration(UpAddAccountType, DownAddAccountType)
}

View file

@ -46,6 +46,7 @@ func NewDatabase(dbProperties *config.DatabaseOptions, serverName gomatrixserver
deltas.LoadIsActive(m)
//deltas.LoadLastSeenTSIP(m)
deltas.LoadAddAccountType(m)
deltas.LoadAddPolicyVersion(m)
if err = m.RunDeltas(db, dbProperties); err != nil {
return nil, err
}