mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-08-02 22:22:46 +00:00
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:
parent
4af88ff0e6
commit
4738fe656f
2 changed files with 42 additions and 4 deletions
|
@ -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())
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue