Files
KantSites/migrations/Version20260915000100.php
kantarciandClaude Opus 5 c8a8fa7460 Rebuild DEEG as a fifth installation, add stepped forms and a plugin system, and clear the review backlog
Forms gained steps, conditions, image choices, number fields with units and a
summary step; the DEEG price finder uses all of it. Plugins are manifest plus
Twig: blocks, settings, containers, routes, presets and theme packs, switched
per installation. The review backlog is done: archive pages render through the
normal page pipeline, forms and post lists work inside areas and sections,
repeated sections get their own ids, breakpoints and colours come from the
palette, backup and update work on MySQL and lock each other out.

The task worker no longer shortens a process that has no time limit:
set_time_limit() sets the limit instead of extending it, which turned an
unlimited CLI run into eighty seconds and killed the full test suite far away
from the scheduler.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-16 07:32:35 +02:00

40 lines
1.4 KiB
PHP

<?php
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20260915000100 extends AbstractMigration
{
public function getDescription(): string
{
return 'Plugins: eine Zeile je Erweiterung mit dem Schalter, ob sie aktiv ist.';
}
public function isTransactional(): bool
{
return false;
}
public function up(Schema $schema): void
{
// Was ein Plugin kann, steht in seinem Manifest im Ordner plugins/. Hier steht nur, ob der
// Betreiber es eingeschaltet hat - eine Entscheidung der Installation, nicht des Codes,
// und deshalb in der Datenbank statt in einer Datei, die ein Update ueberschreiben koennte.
$plugin = $schema->createTable('plugin');
$plugin->addColumn('name', 'string', ['length' => 40]);
$plugin->addColumn('active', 'boolean', ['default' => false]);
$plugin->addColumn('activated_at', 'datetime_immutable', ['notnull' => false]);
// Die Fassung, mit der es zuletzt eingeschaltet wurde - damit die Verwaltung sagen kann,
// dass ein Plugin seit dem Einschalten aktualisiert wurde.
$plugin->addColumn('version', 'string', ['length' => 32, 'default' => '']);
$plugin->setPrimaryKey(['name']);
}
public function down(Schema $schema): void
{
$schema->dropTable('plugin');
}
}