This repository has been archived on 2025-04-11. You can view files and clone it, but cannot push or open issues or pull requests.
bee-backend-ARCHIVED/data/migrations/business/Version20240911191301.php
2024-09-14 21:52:57 +00:00

42 lines
1.0 KiB
PHP

<?php
declare(strict_types=1);
namespace Bee\Migrations\Bee;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20240911191301 extends AbstractMigration
{
public function getDescription(): string
{
return "Create Table 'mail'";
}
public function up(Schema $schema): void
{
$sql = "CREATE TABLE mail (
id binary(16) NOT NULL,
template varchar(255) NOT NULL,
data json NOT NULL,
recipient varchar(255) NOT NULL,
sender varchar(255) NULL,
sender_name varchar(255) NULL,
failed_at datetime NULL,
created_at datetime NOT NULL,
PRIMARY KEY (id)
);";
$this->addSql($sql);
}
public function down(Schema $schema): void
{
$this->addSql("DROP TABLE mail;");
}
}