<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20250526083749 extends AbstractMigration
{
public function getDescription(): string
{
return 'Update editorFooterContent for existing services';
}
public function up(Schema $schema): void
{
$defaultContent = '<p><small> Szczegółowe informacje na temat realizacji procesu uzyskać można pod nr telefonu <a href="tel:74 66 55 121">74 66 55 121</a></small></p>';
$this->addSql('UPDATE service SET editor_footer_content = :content WHERE editor_footer_content IS NULL', [
'content' => $defaultContent
]);
}
public function down(Schema $schema): void
{
$this->addSql('UPDATE service SET editor_footer_content = NULL');
}
}