migrations/Version20241003110117.php line 1

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace DoctrineMigrations;
  4. use Doctrine\DBAL\Schema\Schema;
  5. use Doctrine\Migrations\AbstractMigration;
  6. /**
  7. * Auto-generated Migration: Please modify to your needs!
  8. */
  9. final class Version20241003110117 extends AbstractMigration
  10. {
  11. public function getDescription(): string
  12. {
  13. return 'Migration zum Umbau der Werbebilder';
  14. }
  15. public function up(Schema $schema): void
  16. {
  17. // Bestehende Contents löschen
  18. $this->addSql("DELETE FROM `content` WHERE `code` IN ('UW-AD-BANNER', 'UW-AD-RECTANGLE')");
  19. // Neuen Contents einfügen UW-AD-HALFPAGE, UW-AD-RECTANGLE, UW-AD-WIDEBOARD, UW-AD-WIDEBOARD-MOBILE
  20. $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')");
  21. $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')");
  22. $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')");
  23. $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')");
  24. }
  25. public function down(Schema $schema): void
  26. {
  27. // this down() migration is auto-generated, please modify it to your needs
  28. }
  29. }