<?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 Version20241003110117 extends AbstractMigration
{
public function getDescription(): string
{
return 'Migration zum Umbau der Werbebilder';
}
public function up(Schema $schema): void
{
// Bestehende Contents löschen
$this->addSql("DELETE FROM `content` WHERE `code` IN ('UW-AD-BANNER', 'UW-AD-RECTANGLE')");
// Neuen Contents einfügen UW-AD-HALFPAGE, UW-AD-RECTANGLE, UW-AD-WIDEBOARD, UW-AD-WIDEBOARD-MOBILE
$this->addSql("INSERT INTO `content` (`id`, `code`, `contentHtml`, `content_description`, `edit_sysadmin_only`, `edit_at`, `content_image`, `content_image_editable`, `content_html_editable`, `is_visible_on_frontend`, `content_text`, `content_text_editable`) VALUES ('561d9d38-036f-42a1-916e-a1db7167d7a3', 'UW-AD-HALFPAGE', NULL, 'Empfehlung: 300 x 600 Pixel, max. 500 KB, GIF/JPG.\r\nHinweis: Es erfolgt keine automatische Bildberechnung!', '0', '2024-10-03 12:51:40', '{\"alt\": \"Halfpage\", \"caption\": \"Halfpage\", \"filename\": \"halfpage-ccf6d.gif\", \"click_url\": \"https://www.gisler1843.ch/bucher-produkte/so-isst-das-tessin\"}', '1', '0', '0', NULL, '0')");
$this->addSql("INSERT INTO `content` (`id`, `code`, `contentHtml`, `content_description`, `edit_sysadmin_only`, `edit_at`, `content_image`, `content_image_editable`, `content_html_editable`, `is_visible_on_frontend`, `content_text`, `content_text_editable`) VALUES ('3fc371b9-4611-4692-b22f-cbe38da0e674', 'UW-AD-RECTANGLE', NULL, 'Empfehlung: 300 x 250 Pixel, max. 500 KB, GIF/JPG.\r\nHinweis: Es erfolgt keine automatische Bildberechnung!', '0', '2024-10-03 12:52:04', '{\"alt\": \"Rectangle\", \"caption\": \"Rectangle\", \"filename\": \"rectangle-76074.gif\", \"click_url\": \"https://www.urnerwochenblatt.ch/blaulicht\"}', '1', '0', '0', NULL, '0')");
$this->addSql("INSERT INTO `content` (`id`, `code`, `contentHtml`, `content_description`, `edit_sysadmin_only`, `edit_at`, `content_image`, `content_image_editable`, `content_html_editable`, `is_visible_on_frontend`, `content_text`, `content_text_editable`) VALUES ('2b47ba5e-2e80-43a1-8bbc-f93f64f865df', 'UW-AD-WIDEBOARD', NULL, 'Empfehlung: 994 x 250 Pixel, max. 500 KB, GIF/JPG.\r\nHinweis: Es erfolgt keine automatische Bildberechnung!', '0', '2024-10-03 12:52:29', '{\"alt\": \"Wideboard\", \"caption\": \"Wideboard\", \"filename\": \"wideboard-36ed1.gif\", \"click_url\": \"https://www.gisler1843.ch/bucher-produkte/so-isst-das-tessin\"}', '1', '0', '0', NULL, '0')");
$this->addSql("INSERT INTO `content` (`id`, `code`, `contentHtml`, `content_description`, `edit_sysadmin_only`, `edit_at`, `content_image`, `content_image_editable`, `content_html_editable`, `is_visible_on_frontend`, `content_text`, `content_text_editable`) VALUES ('f5a8f01e-a308-4857-8ecd-fb6cc8fe9915', 'UW-AD-WIDEBOARD-MOBILE', NULL, 'Empfehlung: 320 x 160 Pixel, max. 250 KB, GIF/JPG.\nWichtig: Es wird nur das Bild verwendet, Texte und ClickUrl wird von der Desktop Version genommen!\r\nHinweis: Es erfolgt keine automatische Bildberechnung!', '0', '2024-10-03 12:58:05', '{\"alt\": \"\", \"caption\": \"\", \"filename\": \"wideboard-mobile-b5760.gif\", \"click_url\": \"https://www.gisler1843.ch/bucher-produkte/so-isst-das-tessin\"}', '1', '0', '0', NULL, '0')");
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
}
}