Roomserver published pkey migration (#2960)

Adds a missed migration to update the primary key on the
roomserver_published table in postgres.
Primary key was changed in #2836.
This commit is contained in:
devonh 2023-02-01 16:32:31 +00:00 committed by GitHub
parent 4af88ff0e6
commit 4738fe656f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 42 additions and 4 deletions

View file

@ -65,10 +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",
Up: deltas.UpPulishedAppservice,
},
{
Version: "roomserver: published appservice pkey",
Up: deltas.UpPulishedAppservicePrimaryKey,
},
}...)
return m.Up(context.Background())
}