Add missing IF NOT EXISTS

This commit is contained in:
Till Faelligen 2023-06-02 15:15:56 +02:00
parent e5ef9a2ead
commit bdcd567f93
No known key found for this signature in database
GPG key ID: ACCDC9606D472758
2 changed files with 2 additions and 2 deletions

View file

@ -26,7 +26,7 @@ import (
)
const userRoomKeysSchema = `
CREATE TABLE roomserver_user_room_keys (
CREATE TABLE IF NOT EXISTS roomserver_user_room_keys (
user_nid INTEGER NOT NULL,
room_nid INTEGER NOT NULL,
pseudo_id_key BYTEA NOT NULL,

View file

@ -26,7 +26,7 @@ import (
)
const userRoomKeysSchema = `
CREATE TABLE roomserver_user_room_keys (
CREATE TABLE IF NOT EXISTS roomserver_user_room_keys (
user_nid INTEGER NOT NULL,
room_nid INTEGER NOT NULL,
pseudo_id_key TEXT NOT NULL,