<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use App\Notification\AuctionAlertAuctionEndingSoon24HOnlineFavoriteFollowingNotification;
use App\Notification\AuctionAlertAuctionEndingSoon2HOnlineFavoriteFollowingNotification;
use App\Notification\AuctionAlertNotification;
use App\Notification\AuctionEndingSoon24HOnlineBiddingNotification;
use App\Notification\AuctionEndingSoon2HOnlineBiddingNotification;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20220621212855 extends AbstractMigration
{
public function getDescription(): string
{
return 'Adjustment in identifier column in notification_template';
}
public function up(Schema $schema): void
{
$this->addSql('UPDATE notification_template SET profile_title = \'Favoritt auksjon avsluttes i morgen\' WHERE notification_type = ' . AuctionAlertAuctionEndingSoon24HOnlineFavoriteFollowingNotification::TYPE . ' AND notification_language = \'nor-NO\';');
$this->addSql('UPDATE notification_template SET profile_title = \'Favoritt auksjon slutter om 2 timer\' WHERE notification_type = ' . AuctionAlertAuctionEndingSoon2HOnlineFavoriteFollowingNotification::TYPE . ' AND notification_language = \'nor-NO\';');
$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\';');
$this->addSql('UPDATE notification_template SET profile_title = \'Auksjonen avsluttes i morgen\' WHERE notification_type = ' . AuctionEndingSoon24HOnlineBiddingNotification::TYPE . ' AND notification_language = \'nor-NO\';');
$this->addSql('UPDATE notification_template SET profile_title = \'Auksjonen avsluttes om 2 timer\' WHERE notification_type = ' . AuctionEndingSoon2HOnlineBiddingNotification::TYPE . ' AND notification_language = \'nor-NO\';');
}
public function down(Schema $schema): void
{
}
}