migrations/Version20220817160707.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. use App\Notification\BidConfirmationOnlineAuctionNotInTheLeadNotification;
  7. use App\Notification\AuctionEndingSoon24HOnlineBiddingNotification;
  8. use App\Notification\AuctionEndingSoon2HOnlineBiddingNotification;
  9. use App\Notification\AuctionAlertAuctionEndingSoon24HOnlineFavoriteFollowingNotification;
  10. use App\Notification\AuctionAlertAuctionEndingSoon2HOnlineFavoriteFollowingNotification;
  11. use App\Notification\AuctionAlertNotification;
  12. /**
  13.  * Auto-generated Migration: Please modify to your needs!
  14.  */
  15. final class Version20220817160707 extends AbstractMigration
  16. {
  17.     public function getDescription(): string
  18.     {
  19.         return 'Adjustment in identifier column in notification_template';
  20.     }
  21.     public function up(Schema $schema): void
  22.     {
  23.         $this->addSql("UPDATE notification_template SET profile_title = 'Overbydd' WHERE notification_type = " BidConfirmationOnlineAuctionNotInTheLeadNotification::TYPE " AND notification_language = 'nor-NO';");
  24.         $this->addSql("UPDATE notification_template SET profile_title = 'Auksjon avsluttes i morgen' WHERE notification_type = " AuctionEndingSoon24HOnlineBiddingNotification::TYPE " AND notification_language = 'nor-NO';");
  25.         $this->addSql("UPDATE notification_template SET profile_title = 'Auksjon avsluttes om to timer' WHERE notification_type = " AuctionEndingSoon2HOnlineBiddingNotification::TYPE " AND notification_language = 'nor-NO';");
  26.         $this->addSql("UPDATE notification_template SET profile_title = 'Auksjon avsluttes i morgen' WHERE notification_type = " AuctionAlertAuctionEndingSoon24HOnlineFavoriteFollowingNotification::TYPE " AND notification_language = 'nor-NO';");
  27.         $this->addSql("UPDATE notification_template SET profile_title = 'Auksjon avsluttes om to timer' WHERE notification_type = " AuctionAlertAuctionEndingSoon2HOnlineFavoriteFollowingNotification::TYPE " AND notification_language = 'nor-NO';");
  28.         $this->addSql("UPDATE notification_template SET profile_title = 'Auksjonsvarsel - nytt treff i på lagret søk' WHERE notification_type = " AuctionAlertNotification::TYPE " AND notification_language = 'nor-NO';");
  29.     }
  30.     public function down(Schema $schema): void
  31.     {
  32.     }
  33. }