aboutsummaryrefslogtreecommitdiffhomepage
path: root/migrations/20250119_194145_create_notification.php
blob: f4b3ae479cd32ae2eb6f0a0fc5430abbdf11cbcf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php

use \Digitigrade\Db\Migrator;

Migrator::getInstance()->register(20250119_194145, function (PDO $db) {
    // table for notifications sent to users
    $db->exec(<<<END
    CREATE TABLE notification (
        id bigserial primary key,
        user_account bigint not null references user_account,
        item_type text not null,
        item_data jsonb not null,
        created timestamp with time zone not null
    );
    END);
});