aboutsummaryrefslogtreecommitdiffhomepage
path: root/migrations/20250115_173712_create_home_timeline.php
blob: becd1a9a5b63e8f4428cb30e0cba3d58fafed497 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php

use \Digitigrade\Db\Migrator;

Migrator::getInstance()->register(20250115_173712, function (PDO $db) {
    // items in each user's home timeline
    $db->exec(<<<END
    CREATE TABLE home_timeline_item (
        id bigserial primary key,
        user_account bigint not null references user_account,
        reason_kind text,
        reason_data jsonb,
        item_kind text not null,
        item_data jsonb not null,
        modified timestamp with time zone not null
    );
    END);
});