chore: complete update

This commit is contained in:
2025-07-17 16:24:20 +02:00
parent 899227b0a4
commit 64a7051137
1300 changed files with 85570 additions and 2756 deletions

View File

@@ -0,0 +1,38 @@
<?php
namespace App\Domain\Contact\Migrations;
use App\Framework\Database\ConnectionInterface;
use App\Framework\Database\Migration\Migration;
final readonly class CreateContactTable implements Migration
{
public function up(ConnectionInterface $connection): void
{
$sql = <<<SQL
CREATE TABLE IF NOT EXISTS contacts (
id INT AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(255) NOT NULL,
email VARCHAR(255) NOT NULL,
message TEXT NOT NULL
)
SQL;
$connection->execute($sql);
}
public function down(ConnectionInterface $connection): void
{
$connection->execute('DROP TABLE IF EXISTS contacts');
}
public function getVersion(): string
{
return '005';
}
public function getDescription(): string
{
return 'Create contact table';
}
}