Fix SQLite roomserver_published migration

This commit is contained in:
Neil Alexander 2022-11-01 15:53:53 +00:00
parent 0b21cb78aa
commit b3e6da3816
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -24,8 +24,8 @@ func UpPulishedAppservice(ctx context.Context, tx *sql.Tx) error {
_, err := tx.ExecContext(ctx, ` ALTER TABLE roomserver_published RENAME TO roomserver_published_tmp;
CREATE TABLE IF NOT EXISTS roomserver_published (
room_id TEXT NOT NULL,
appservice_id TEXT NOT NULL,
network_id TEXT NOT NULL,
appservice_id TEXT NOT NULL DEFAULT '',
network_id TEXT NOT NULL DEFAULT '',
published BOOLEAN NOT NULL DEFAULT false,
CONSTRAINT unique_published_idx PRIMARY KEY (room_id, appservice_id, network_id)
);