M2 Umsetzung

This commit is contained in:
2026-07-12 01:07:35 +02:00
parent 66bdd38d54
commit 174fff6f31
10 changed files with 430 additions and 35 deletions
+20
View File
@@ -0,0 +1,20 @@
<?php
declare(strict_types=1);
require __DIR__ . '/dev-db.php';
$pdo = dev_pdo();
$applied = dev_apply_migrations($pdo);
if ($applied === []) {
echo "No new migrations. Database is up to date.\n";
exit(0);
}
foreach ($applied as $version) {
echo "Applied migration: {$version}\n";
}
echo "Applied " . count($applied) . " migration(s).\n";