aboutsummaryrefslogtreecommitdiffhomepage
path: root/migrations/20250119_233507_add_session_created.php
blob: c4978cbc1601c9586db1e848c3b738b8f82ed855 (plain)
1
2
3
4
5
6
7
8
<?php

use \Digitigrade\Db\Migrator;

Migrator::getInstance()->register(20250119_233507, function (PDO $db) {
    // track when sessions were created so they can be tidied up after some time
    $db->exec('ALTER TABLE session ADD COLUMN created timestamp with time zone not null default current_timestamp');
});