mirror of
https://github.com/hoernschen/dendrite.git
synced 2024-12-27 23:48:27 +00:00
Fix SQLite roomserver_published
migration
This commit is contained in:
parent
2acc1d65fb
commit
6663728eb1
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
_, err := tx.ExecContext(ctx, ` ALTER TABLE roomserver_published RENAME TO roomserver_published_tmp;
|
||||||
CREATE TABLE IF NOT EXISTS roomserver_published (
|
CREATE TABLE IF NOT EXISTS roomserver_published (
|
||||||
room_id TEXT NOT NULL,
|
room_id TEXT NOT NULL,
|
||||||
appservice_id TEXT NOT NULL,
|
appservice_id TEXT NOT NULL DEFAULT '',
|
||||||
network_id TEXT NOT NULL,
|
network_id TEXT NOT NULL DEFAULT '',
|
||||||
published BOOLEAN NOT NULL DEFAULT false,
|
published BOOLEAN NOT NULL DEFAULT false,
|
||||||
CONSTRAINT unique_published_idx PRIMARY KEY (room_id, appservice_id, network_id)
|
CONSTRAINT unique_published_idx PRIMARY KEY (room_id, appservice_id, network_id)
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue