diff options
| author | Daniel Weipert <git@mail.dweipert.de> | 2026-04-16 15:39:21 +0200 |
|---|---|---|
| committer | Daniel Weipert <git@mail.dweipert.de> | 2026-04-16 15:39:21 +0200 |
| commit | 21593231a0e7de30004a8b4530047b4ad4680db7 (patch) | |
| tree | 7a86fd3e99bd37631c48474bcdfb267d0763b4af /migrations | |
| parent | f3202403339e94f0186b9ff19e83c7a32fdad198 (diff) | |
Diffstat (limited to 'migrations')
| -rw-r--r-- | migrations/20250819.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/migrations/20250819.php b/migrations/20250819.php index 3476081..6e3c59b 100644 --- a/migrations/20250819.php +++ b/migrations/20250819.php @@ -20,6 +20,29 @@ Database::getInstance()->query(<<<SQL SQL); Database::getInstance()->query(<<<SQL + create table if not exists "account_data" ( + "key" text not null, + "value" jsonb not null, + + "user_id" text references users(id) not null, + + primary key (user_id, key) + ); +SQL); + +Database::getInstance()->query(<<<SQL + create table if not exists "room_account_data" ( + "key" text not null, + "value" jsonb not null, + + "user_id" text references users(id) not null, + "room_id" text references rooms(id) not null, + + primary key (user_id, room_id, key) + ); +SQL); + +Database::getInstance()->query(<<<SQL create table if not exists "devices" ( "id" varchar(255) not null, "name" varchar(255) not null, |
