mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-21 04:53:14 -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
|
return err
|
||||||
}
|
}
|
||||||
m := sqlutil.NewMigrator(db)
|
m := sqlutil.NewMigrator(db)
|
||||||
m.AddMigrations(sqlutil.Migration{
|
m.AddMigrations([]sqlutil.Migration{
|
||||||
Version: "roomserver: published appservice",
|
{
|
||||||
Up: deltas.UpPulishedAppservice,
|
Version: "roomserver: published appservice",
|
||||||
})
|
Up: deltas.UpPulishedAppservice,
|
||||||
m.AddMigrations(sqlutil.Migration{
|
},
|
||||||
Version: "roomserver: published appservice pkey",
|
{
|
||||||
Up: deltas.UpPulishedAppservicePrimaryKey,
|
Version: "roomserver: published appservice pkey",
|
||||||
})
|
Up: deltas.UpPulishedAppservicePrimaryKey,
|
||||||
|
},
|
||||||
|
}...)
|
||||||
return m.Up(context.Background())
|
return m.Up(context.Background())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue