Add settings-driven theme and version metadata

This commit is contained in:
Micha
2025-12-25 14:35:01 +01:00
parent b5d689dd4d
commit 882ef26982
16 changed files with 525 additions and 29 deletions

View File

@@ -0,0 +1,26 @@
<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20251224194000 extends AbstractMigration
{
public function getDescription(): string
{
return 'Add accent color setting.';
}
public function up(Schema $schema): void
{
$this->addSql("INSERT IGNORE INTO settings (`key`, value) VALUES ('accent_color', '#f29b3f')");
}
public function down(Schema $schema): void
{
$this->addSql("DELETE FROM settings WHERE `key` = 'accent_color'");
}
}