<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
use App\Notification\BidConfirmationOnlineAuctionNotInTheLeadNotification;
use App\Notification\AuctionEndingSoon24HOnlineBiddingNotification;
use App\Notification\AuctionEndingSoon2HOnlineBiddingNotification;
use App\Notification\AuctionAlertAuctionEndingSoon24HOnlineFavoriteFollowingNotification;
use App\Notification\AuctionAlertAuctionEndingSoon2HOnlineFavoriteFollowingNotification;
use App\Notification\AuctionAlertNotification;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20220817160707 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 = 'Overbydd' WHERE notification_type = " . BidConfirmationOnlineAuctionNotInTheLeadNotification::TYPE . " AND notification_language = 'nor-NO';");
$this->addSql("UPDATE notification_template SET profile_title = 'Auksjon avsluttes i morgen' WHERE notification_type = " . AuctionEndingSoon24HOnlineBiddingNotification::TYPE . " AND notification_language = 'nor-NO';");
$this->addSql("UPDATE notification_template SET profile_title = 'Auksjon avsluttes om to timer' WHERE notification_type = " . AuctionEndingSoon2HOnlineBiddingNotification::TYPE . " AND notification_language = 'nor-NO';");
$this->addSql("UPDATE notification_template SET profile_title = 'Auksjon avsluttes i morgen' WHERE notification_type = " . AuctionAlertAuctionEndingSoon24HOnlineFavoriteFollowingNotification::TYPE . " AND notification_language = 'nor-NO';");
$this->addSql("UPDATE notification_template SET profile_title = 'Auksjon avsluttes om to timer' WHERE notification_type = " . AuctionAlertAuctionEndingSoon2HOnlineFavoriteFollowingNotification::TYPE . " AND notification_language = 'nor-NO';");
$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';");
}
public function down(Schema $schema): void
{
}
}