mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-16 18:43:10 -06:00
Group adding roomserver migrations to the same call
This commit is contained in:
parent
f22ba586ba
commit
d5f03c241b
|
|
@ -65,14 +65,16 @@ func CreatePublishedTable(db *sql.DB) error {
|
|||
return err
|
||||
}
|
||||
m := sqlutil.NewMigrator(db)
|
||||
m.AddMigrations(sqlutil.Migration{
|
||||
Version: "roomserver: published appservice",
|
||||
Up: deltas.UpPulishedAppservice,
|
||||
})
|
||||
m.AddMigrations(sqlutil.Migration{
|
||||
Version: "roomserver: published appservice pkey",
|
||||
Up: deltas.UpPulishedAppservicePrimaryKey,
|
||||
})
|
||||
m.AddMigrations([]sqlutil.Migration{
|
||||
{
|
||||
Version: "roomserver: published appservice",
|
||||
Up: deltas.UpPulishedAppservice,
|
||||
},
|
||||
{
|
||||
Version: "roomserver: published appservice pkey",
|
||||
Up: deltas.UpPulishedAppservicePrimaryKey,
|
||||
},
|
||||
}...)
|
||||
return m.Up(context.Background())
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue