migrations/Version20220621212855.php line 1

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace DoctrineMigrations;
  4. use App\Notification\AuctionAlertAuctionEndingSoon24HOnlineFavoriteFollowingNotification;
  5. use App\Notification\AuctionAlertAuctionEndingSoon2HOnlineFavoriteFollowingNotification;
  6. use App\Notification\AuctionAlertNotification;
  7. use App\Notification\AuctionEndingSoon24HOnlineBiddingNotification;
  8. use App\Notification\AuctionEndingSoon2HOnlineBiddingNotification;
  9. use Doctrine\DBAL\Schema\Schema;
  10. use Doctrine\Migrations\AbstractMigration;
  11. /**
  12.  * Auto-generated Migration: Please modify to your needs!
  13.  */
  14. final class Version20220621212855 extends AbstractMigration
  15. {
  16.     public function getDescription(): string
  17.     {
  18.         return 'Adjustment in identifier column in notification_template';
  19.     }
  20.     public function up(Schema $schema): void
  21.     {
  22.         $this->addSql('UPDATE notification_template SET profile_title = \'Favoritt auksjon avsluttes i morgen\' WHERE notification_type = ' AuctionAlertAuctionEndingSoon24HOnlineFavoriteFollowingNotification::TYPE ' AND notification_language = \'nor-NO\';');
  23.         $this->addSql('UPDATE notification_template SET profile_title = \'Favoritt auksjon slutter om 2 timer\' WHERE notification_type = ' AuctionAlertAuctionEndingSoon2HOnlineFavoriteFollowingNotification::TYPE ' AND notification_language = \'nor-NO\';');
  24.         $this->addSql('UPDATE notification_template SET profile_title = \'Varsel ved nye treff i søket\' WHERE notification_type = ' AuctionAlertNotification::TYPE ' AND notification_language = \'nor-NO\';');
  25.         $this->addSql('UPDATE notification_template SET profile_title = \'Auksjonen avsluttes i morgen\' WHERE notification_type = ' AuctionEndingSoon24HOnlineBiddingNotification::TYPE ' AND notification_language = \'nor-NO\';');
  26.         $this->addSql('UPDATE notification_template SET profile_title = \'Auksjonen avsluttes om 2 timer\' WHERE notification_type = ' AuctionEndingSoon2HOnlineBiddingNotification::TYPE ' AND notification_language = \'nor-NO\';');
  27.     }
  28.     public function down(Schema $schema): void
  29.     {
  30.     }
  31. }