Group adding roomserver migrations to the same call

This commit is contained in:
Devon Hudson 2023-02-01 08:48:15 -07:00
parent f22ba586ba
commit d5f03c241b
No known key found for this signature in database
GPG key ID: CD06B18E77F6A628

View file

@ -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())
}