<?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 Version20251119183558 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
$this->addSql("UPDATE std_pages SET content_type = (SELECT id FROM std_content_types WHERE machine_name = 'system') WHERE name IN ('Compromisso Editorial', 'Contacto', 'Eventos', 'Guia TV', 'Home', 'Perto de Si', 'Quem Somos', 'Todos os programas', 'Ver (TV)') AND content_type = (SELECT id FROM std_content_types WHERE machine_name = 'pages')");
}
public function down(Schema $schema): void
{
$this->addSql("UPDATE std_pages SET content_type = (SELECT id FROM std_content_types WHERE machine_name = 'pages') WHERE name IN ('Compromisso Editorial', 'Contacto', 'Eventos', 'Guia TV', 'Home', 'Perto de Si', 'Quem Somos', 'Todos os programas', 'Ver (TV)') AND content_type = (SELECT id FROM std_content_types WHERE machine_name = 'system')");
}
}