migrations/Delete/Version20250423140452_ReportingOps.php line 1
<?php
declare(strict_types=1);
namespace DoctrineMigrations\Delete;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20250423140452_ReportingOps extends AbstractMigration
{
public function getDescription(): string
{
return 'Add ops reporting table';
}
public function up(Schema $schema): void
{
$this->addSql('CREATE TABLE reporting_ops (
id SERIAL PRIMARY KEY,
data JSONB NOT NULL,
created_at TIMESTAMP(0) WITH TIME ZONE NOT NULL DEFAULT CURRENT_TIMESTAMP
)');
$this->addSql("COMMENT ON COLUMN reporting_ops.data IS '(DC2Type:json_document)'");
}
public function down(Schema $schema): void
{
$this->addSql('DROP TABLE IF EXISTS reporting_ops');
}
}