initial commit

This commit is contained in:
greggy
2025-10-06 23:10:59 +02:00
commit ad46abd2ba
62 changed files with 4332 additions and 0 deletions

22
update-schema.php Normal file
View File

@@ -0,0 +1,22 @@
<?php
// update-schema.php - Datenbank-Schema aktualisieren
require_once 'doctrine-config.php';
use Doctrine\ORM\Tools\SchemaTool;
$classes = [
$entityManager->getClassMetadata('Entity\User'),
$entityManager->getClassMetadata('Entity\Kampagne'),
$entityManager->getClassMetadata('Entity\Werbenetzwerk'),
];
$schemaTool = new SchemaTool($entityManager);
try {
// Schema updaten
$schemaTool->updateSchema($classes);
echo "Database schema updated successfully!\n";
} catch (\Exception $e) {
echo "Error updating schema: " . $e->getMessage() . "\n";
}