<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use App\Notification\ALotFavoriteReceivedBidNotification;
use App\Notification\AuctionAlertAuctionEndingSoon24HOnlineFavoriteFollowingNotification;
use App\Notification\AuctionAlertAuctionEndingSoon2HOnlineFavoriteFollowingNotification;
use App\Notification\AuctionAlertNotification;
use App\Notification\AuctionEndingSoon24HOnlineBiddingNotification;
use App\Notification\AuctionEndingSoon2HOnlineBiddingNotification;
use App\Notification\SellerObjectNotSoldThirdNotification;
use App\Notification\SellerObjectNotSoldSecondNotification;
use App\Notification\AuctionResultsToSellerNotification;
use App\Notification\AutomaticPaymentSuccessfullReceiptAttachedAsPDFNotification;
use App\Notification\BankCardExpiredNotification;
use App\Notification\BankCardExpiresSoonNotification;
use App\Notification\BidConfirmationOnlineAuctionNotification;
use App\Notification\BidConfirmationOnlineAuctionNotInTheLeadNotification;
use App\Notification\CardPaymentUnsuccessfulLateFeeNotification;
use App\Notification\AdvanceBidNotification;
use App\Notification\PhoneBidNotification;
use App\Notification\InactiveUserFirstNoticeNotification;
use App\Notification\InactiveUserProfileClosedNotification;
use App\Notification\NewPickUpInBergenNotification;
use App\Notification\NewUserRegistrationVerificationNotification;
use App\Notification\NewUserWelcomeEmailNotification;
use App\Notification\OutbidNotificationOnlineAuctionNotification;
use App\Notification\PasswordResetEmailNotification;
use App\Notification\PaymentReceiptReceiptAttachedAsPDFNotification;
use App\Notification\SendExpertViewObjectNotification;
use App\Notification\StorageFeeNumberOneNotification;
use App\Notification\StorageFeeNumberTwoStorageFeeBeginningNotification;
use App\Notification\UserPasswordUpdatedNotification;
use App\Notification\UserPaymentCardUpdatedNotification;
use App\Notification\UserProfileIsUpdatedNotification;
use App\Notification\WinnerEmailOnlineNotification;
use App\Notification\WinnerEmailOnlineWineNotification;
use App\Notification\YourLotsAreLiveOnlineNotification;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20220614010019 extends AbstractMigration
{
public function getDescription(): string
{
return 'Add identifier column to notification_template';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE notification_template ADD identifier VARCHAR(255) NULL AFTER id');
// nor-No
$this->addSql('UPDATE notification_template SET identifier = \'USER_REGISTRATION_NOR\' WHERE notification_type = ' . NewUserRegistrationVerificationNotification::TYPE . ' AND notification_language = \'nor-NO\'');
$this->addSql('UPDATE notification_template SET identifier = \'USER_WELCOME_NOR\' WHERE notification_type = ' . NewUserWelcomeEmailNotification::TYPE . ' AND notification_language = \'nor-NO\'');
$this->addSql('UPDATE notification_template SET identifier = \'PROFILE_UPDATED_NOR\' WHERE notification_type = ' . UserProfileIsUpdatedNotification::TYPE . ' AND notification_language = \'nor-NO\'');
$this->addSql('UPDATE notification_template SET identifier = \'PASSWORD_CHANGED_NOR\' WHERE notification_type = ' . UserPasswordUpdatedNotification::TYPE . ' AND notification_language = \'nor-NO\'');
$this->addSql('UPDATE notification_template SET identifier = \'CREDITCARD_CHANGED_NOR\' WHERE notification_type = ' . UserPaymentCardUpdatedNotification::TYPE . ' AND notification_language = \'nor-NO\'');
$this->addSql('UPDATE notification_template SET identifier = \'CHANGE_YOUR_PASSWORD_NOR\' WHERE notification_type = ' . PasswordResetEmailNotification::TYPE . ' AND notification_language = \'nor-NO\'');
$this->addSql('UPDATE notification_template SET identifier = \'BID_CONFIRMATION_LEADING_NOT_AUTOBID_NOR\' WHERE notification_type = ' . BidConfirmationOnlineAuctionNotification::TYPE . ' AND notification_language = \'nor-NO\'');
$this->addSql('UPDATE notification_template SET identifier = \'BID_CONFIRMATION_LEADING_AUTOBID_NOR\' WHERE notification_type = ' . BidConfirmationOnlineAuctionNotInTheLeadNotification::TYPE . ' AND notification_language = \'nor-NO\'');
$this->addSql('UPDATE notification_template SET identifier = \'BID_CONFIRMATION_OUTBID_NOR\' WHERE notification_type = ' . OutbidNotificationOnlineAuctionNotification::TYPE . ' AND notification_language = \'nor-NO\'');
$this->addSql('UPDATE notification_template SET identifier = \'AUCTION_END_TOMORROW_NOR\' WHERE notification_type = ' . AuctionEndingSoon24HOnlineBiddingNotification::TYPE . ' AND notification_language = \'nor-NO\'');
$this->addSql('UPDATE notification_template SET identifier = \'AUCTION_END_2HOURS_NOR\' WHERE notification_type = ' . AuctionEndingSoon2HOnlineBiddingNotification::TYPE . ' AND notification_language = \'nor-NO\'');
$this->addSql('UPDATE notification_template SET identifier = \'AUCTION_WON_NOR\' WHERE notification_type = ' . WinnerEmailOnlineNotification::TYPE . ' AND notification_language = \'nor-NO\'');
$this->addSql('UPDATE notification_template SET identifier = \'SAVED_SEARCH_NOR\' WHERE notification_type = ' . AuctionAlertNotification::TYPE . ' AND notification_language = \'nor-NO\'');
$this->addSql('UPDATE notification_template SET identifier = \'FAVORITE_AUCTION_END_TOMORROW_NOR\' WHERE notification_type = ' . AuctionAlertAuctionEndingSoon24HOnlineFavoriteFollowingNotification::TYPE . ' AND notification_language = \'nor-NO\'');
$this->addSql('UPDATE notification_template SET identifier = \'FAVORITE_OBJECT_GOT_BID_NOR\' WHERE notification_type = ' . ALotFavoriteReceivedBidNotification::TYPE . ' AND notification_language = \'nor-NO\'');
$this->addSql('UPDATE notification_template SET identifier = \'PAYMENT_DONE_AUTOMATIC_NOR\' WHERE notification_type = ' . AutomaticPaymentSuccessfullReceiptAttachedAsPDFNotification::TYPE . ' AND notification_language = \'nor-NO\'');
$this->addSql('UPDATE notification_template SET identifier = \'CREDITCARD_FAILED_NOR\' WHERE notification_type = ' . CardPaymentUnsuccessfulLateFeeNotification::TYPE . ' AND notification_language = \'nor-NO\'');
$this->addSql('UPDATE notification_template SET identifier = \'FAVORITE_AUCTION_END_2HOURS_NOR\' WHERE notification_type = ' . AuctionAlertAuctionEndingSoon2HOnlineFavoriteFollowingNotification::TYPE . ' AND notification_language = \'nor-NO\'');
$this->addSql('UPDATE notification_template SET identifier = \'PAYMENT_DONE_MANUAL_NOR\' WHERE notification_type = ' . PaymentReceiptReceiptAttachedAsPDFNotification::TYPE . ' AND notification_language = \'nor-NO\'');
$this->addSql('UPDATE notification_template SET identifier = \'CREDITCARD_EXPIRES_SOON_NOR\' WHERE notification_type = ' . BankCardExpiresSoonNotification::TYPE . ' AND notification_language = \'nor-NO\'');
$this->addSql('UPDATE notification_template SET identifier = \'CREDITCARD_EXPIRED_NOR\' WHERE notification_type = ' . BankCardExpiredNotification::TYPE . ' AND notification_language = \'nor-NO\'');
$this->addSql('UPDATE notification_template SET identifier = \'ADVANCE_BID_NOR\' WHERE notification_type = ' . AdvanceBidNotification::TYPE . ' AND notification_language = \'nor-NO\'');
$this->addSql('UPDATE notification_template SET identifier = \'PHONE_BID_NOR\' WHERE notification_type = ' . PhoneBidNotification::TYPE . ' AND notification_language = \'nor-NO\'');
$this->addSql('UPDATE notification_template SET identifier = \'SELLER_FOR_SALE_NOR\' WHERE notification_type = ' . YourLotsAreLiveOnlineNotification::TYPE . ' AND notification_language = \'nor-NO\'');
$this->addSql('UPDATE notification_template SET identifier = \'SELLER_OBJECT_SOLD_NOR\' WHERE notification_type = ' . AuctionResultsToSellerNotification::TYPE . ' AND notification_language = \'nor-NO\'');
$this->addSql('UPDATE notification_template SET identifier = \'SELLER_OBJECT_NOT_SOLD_NOR\' WHERE notification_type = ' . SellerObjectNotSoldSecondNotification::TYPE . ' AND notification_language = \'nor-NO\'');
$this->addSql('UPDATE notification_template SET identifier = \'SELLER_OBJECT_NOT_SOLD_SECOND_NOR\' WHERE notification_type = ' . SellerObjectNotSoldThirdNotification::TYPE . ' AND notification_language = \'nor-NO\'');
$this->addSql('UPDATE notification_template SET identifier = \'PICKUP_OBJECT_7_DAYS_NOR\' WHERE notification_type = ' . StorageFeeNumberOneNotification::TYPE . ' AND notification_language = \'nor-NO\'');
$this->addSql('UPDATE notification_template SET identifier = \'PICKUP_OBJECT_14_DAYS_NOR\' WHERE notification_type = ' . StorageFeeNumberTwoStorageFeeBeginningNotification::TYPE . ' AND notification_language = \'nor-NO\'');
$this->addSql('UPDATE notification_template SET identifier = \'ACCOUNT_INACTIVE_NOR\' WHERE notification_type = ' . InactiveUserFirstNoticeNotification::TYPE . ' AND notification_language = \'nor-NO\'');
$this->addSql('UPDATE notification_template SET identifier = \'ACCOUNT_CLOSED_NOR\' WHERE notification_type = ' . InactiveUserProfileClosedNotification::TYPE . ' AND notification_language = \'nor-NO\'');
$this->addSql('UPDATE notification_template SET identifier = \'SEND_EXPERT_NOR\' WHERE notification_type = ' . SendExpertViewObjectNotification::TYPE . ' AND notification_language = \'nor-NO\'');
$this->addSql('UPDATE notification_template SET identifier = \'AUCTION_WON_WINE_NOR\' WHERE notification_type = ' . WinnerEmailOnlineWineNotification::TYPE . ' AND notification_language = \'nor-NO\'');
$this->addSql('UPDATE notification_template SET identifier = \'PICKUP_BERGEN_NOR\' WHERE notification_type = ' . NewPickUpInBergenNotification::TYPE . ' AND notification_language = \'nor-NO\'');
//eng-GB
$this->addSql('UPDATE notification_template SET identifier = \'USER_REGISTRATION_ENG\' WHERE notification_type = ' . NewUserRegistrationVerificationNotification::TYPE . ' AND notification_language = \'eng-GB\'');
$this->addSql('UPDATE notification_template SET identifier = \'USER_WELCOME_ENG\' WHERE notification_type = ' . NewUserWelcomeEmailNotification::TYPE . ' AND notification_language = \'eng-GB\'');
$this->addSql('UPDATE notification_template SET identifier = \'PROFILE_UPDATED_ENG\' WHERE notification_type = ' . UserProfileIsUpdatedNotification::TYPE . ' AND notification_language = \'eng-GB\'');
$this->addSql('UPDATE notification_template SET identifier = \'PASSWORD_CHANGED_ENG\' WHERE notification_type = ' . UserPasswordUpdatedNotification::TYPE . ' AND notification_language = \'eng-GB\'');
$this->addSql('UPDATE notification_template SET identifier = \'CREDITCARD_CHANGED_ENG\' WHERE notification_type = ' . UserPaymentCardUpdatedNotification::TYPE . ' AND notification_language = \'eng-GB\'');
$this->addSql('UPDATE notification_template SET identifier = \'CHANGE_YOUR_PASSWORD_ENG\' WHERE notification_type = ' . PasswordResetEmailNotification::TYPE . ' AND notification_language = \'eng-GB\'');
$this->addSql('UPDATE notification_template SET identifier = \'BID_CONFIRMATION_LEADING_NOT_AUTOBID_ENG\' WHERE notification_type = ' . BidConfirmationOnlineAuctionNotification::TYPE . ' AND notification_language = \'eng-GB\'');
$this->addSql('UPDATE notification_template SET identifier = \'BID_CONFIRMATION_LEADING_AUTOBID_ENG\' WHERE notification_type = ' . BidConfirmationOnlineAuctionNotInTheLeadNotification::TYPE . ' AND notification_language = \'eng-GB\'');
$this->addSql('UPDATE notification_template SET identifier = \'BID_CONFIRMATION_OUTBID_ENG\' WHERE notification_type = ' . OutbidNotificationOnlineAuctionNotification::TYPE . ' AND notification_language = \'eng-GB\'');
$this->addSql('UPDATE notification_template SET identifier = \'AUCTION_END_TOMORROW_ENG\' WHERE notification_type = ' . AuctionEndingSoon24HOnlineBiddingNotification::TYPE . ' AND notification_language = \'eng-GB\'');
$this->addSql('UPDATE notification_template SET identifier = \'AUCTION_END_2HOURS_ENG\' WHERE notification_type = ' . AuctionEndingSoon2HOnlineBiddingNotification::TYPE . ' AND notification_language = \'eng-GB\'');
$this->addSql('UPDATE notification_template SET identifier = \'AUCTION_WON_ENG\' WHERE notification_type = ' . WinnerEmailOnlineNotification::TYPE . ' AND notification_language = \'eng-GB\'');
$this->addSql('UPDATE notification_template SET identifier = \'SAVED_SEARCH_ENG\' WHERE notification_type = ' . AuctionAlertNotification::TYPE . ' AND notification_language = \'eng-GB\'');
$this->addSql('UPDATE notification_template SET identifier = \'FAVORITE_AUCTION_END_TOMORROW_ENG\' WHERE notification_type = ' . AuctionAlertAuctionEndingSoon24HOnlineFavoriteFollowingNotification::TYPE . ' AND notification_language = \'eng-GB\'');
$this->addSql('UPDATE notification_template SET identifier = \'FAVORITE_OBJECT_GOT_BID_ENG\' WHERE notification_type = ' . ALotFavoriteReceivedBidNotification::TYPE . ' AND notification_language = \'eng-GB\'');
$this->addSql('UPDATE notification_template SET identifier = \'PAYMENT_DONE_AUTOMATIC_ENG\' WHERE notification_type = ' . AutomaticPaymentSuccessfullReceiptAttachedAsPDFNotification::TYPE . ' AND notification_language = \'eng-GB\'');
$this->addSql('UPDATE notification_template SET identifier = \'CREDITCARD_FAILED_ENG\' WHERE notification_type = ' . CardPaymentUnsuccessfulLateFeeNotification::TYPE . ' AND notification_language = \'eng-GB\'');
$this->addSql('UPDATE notification_template SET identifier = \'FAVORITE_AUCTION_END_2HOURS_ENG\' WHERE notification_type = ' . AuctionAlertAuctionEndingSoon2HOnlineFavoriteFollowingNotification::TYPE . ' AND notification_language = \'eng-GB\'');
$this->addSql('UPDATE notification_template SET identifier = \'PAYMENT_DONE_MANUAL_ENG\' WHERE notification_type = ' . PaymentReceiptReceiptAttachedAsPDFNotification::TYPE . ' AND notification_language = \'eng-GB\'');
$this->addSql('UPDATE notification_template SET identifier = \'CREDITCARD_EXPIRES_SOON_ENG\' WHERE notification_type = ' . BankCardExpiresSoonNotification::TYPE . ' AND notification_language = \'eng-GB\'');
$this->addSql('UPDATE notification_template SET identifier = \'CREDITCARD_EXPIRED_ENG\' WHERE notification_type = ' . BankCardExpiredNotification::TYPE . ' AND notification_language = \'eng-GB\'');
$this->addSql('UPDATE notification_template SET identifier = \'ADVANCE_BID_ENG\' WHERE notification_type = ' . AdvanceBidNotification::TYPE . ' AND notification_language = \'eng-GB\'');
$this->addSql('UPDATE notification_template SET identifier = \'PHONE_BID_ENG\' WHERE notification_type = ' . PhoneBidNotification::TYPE . ' AND notification_language = \'eng-GB\'');
$this->addSql('UPDATE notification_template SET identifier = \'SELLER_FOR_SALE_ENG\' WHERE notification_type = ' . YourLotsAreLiveOnlineNotification::TYPE . ' AND notification_language = \'eng-GB\'');
$this->addSql('UPDATE notification_template SET identifier = \'SELLER_OBJECT_SOLD_ENG\' WHERE notification_type = ' . AuctionResultsToSellerNotification::TYPE . ' AND notification_language = \'eng-GB\'');
$this->addSql('UPDATE notification_template SET identifier = \'SELLER_OBJECT_NOT_SOLD_ENG\' WHERE notification_type = ' . SellerObjectNotSoldSecondNotification::TYPE . ' AND notification_language = \'eng-GB\'');
$this->addSql('UPDATE notification_template SET identifier = \'SELLER_OBJECT_NOT_SOLD_SECOND_ENG\' WHERE notification_type = ' . SellerObjectNotSoldThirdNotification::TYPE . ' AND notification_language = \'eng-GB\'');
$this->addSql('UPDATE notification_template SET identifier = \'PICKUP_OBJECT_7_DAYS_ENG\' WHERE notification_type = ' . StorageFeeNumberOneNotification::TYPE . ' AND notification_language = \'eng-GB\'');
$this->addSql('UPDATE notification_template SET identifier = \'PICKUP_OBJECT_14_DAYS_ENG\' WHERE notification_type = ' . StorageFeeNumberTwoStorageFeeBeginningNotification::TYPE . ' AND notification_language = \'eng-GB\'');
$this->addSql('UPDATE notification_template SET identifier = \'ACCOUNT_INACTIVE_ENG\' WHERE notification_type = ' . InactiveUserFirstNoticeNotification::TYPE . ' AND notification_language = \'eng-GB\'');
$this->addSql('UPDATE notification_template SET identifier = \'ACCOUNT_CLOSED_ENG\' WHERE notification_type = ' . InactiveUserProfileClosedNotification::TYPE . ' AND notification_language = \'eng-GB\'');
$this->addSql('UPDATE notification_template SET identifier = \'SEND_EXPERT_ENG\' WHERE notification_type = ' . SendExpertViewObjectNotification::TYPE . ' AND notification_language = \'eng-GB\'');
$this->addSql('UPDATE notification_template SET identifier = \'AUCTION_WON_WINE_ENG\' WHERE notification_type = ' . WinnerEmailOnlineWineNotification::TYPE . ' AND notification_language = \'eng-GB\'');
$this->addSql('UPDATE notification_template SET identifier = \'PICKUP_BERGEN_ENG\' WHERE notification_type = ' . NewPickUpInBergenNotification::TYPE . ' AND notification_language = \'eng-GB\'');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE notification_template DROP identifier');
}
}