Add Themes: Dark, light and automatic mode

This commit is contained in:
Frédéric Guillot
2023-05-12 21:09:30 -07:00
committed by Frédéric Guillot
parent 65a5f0f47d
commit aade89c9ba
89 changed files with 1129 additions and 196 deletions

View File

@@ -8,9 +8,14 @@ use Kanboard\Core\Security\Token;
use Kanboard\Core\Security\Role;
use PDO;
const VERSION = 126;
const VERSION = 127;
function version_127(PDO $pdo)
{
$pdo->exec("ALTER TABLE users ADD COLUMN theme TEXT DEFAULT 'light' NOT NULL");
}
function version_126(PDO $pdo)
{
$pdo->exec('ALTER TABLE subtask_time_tracking RENAME TO subtask_time_tracking_old');