10 lines
332 B
PHP
10 lines
332 B
PHP
<?php
|
|
|
|
use Core\Driver\SQL\Column\DateTimeColumn;
|
|
use Core\Driver\SQL\Expression\CurrentTimeStamp;
|
|
use Core\Objects\DatabaseEntity\Session;
|
|
|
|
$handler = Session::getHandler($sql);
|
|
$queries[] = $sql->alterTable($handler->getTableName())
|
|
->add(new DateTimeColumn($handler->getColumnName("lastOnline"), false, new CurrentTimeStamp()));
|