<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
use App\Notification\UserProfileIsUpdatedNotification;
use App\Notification\UserPasswordUpdatedNotification;
use App\Notification\UserPaymentCardUpdatedNotification;
use App\Notification\PasswordResetEmailNotification;
use App\Notification\BidConfirmationOnlineAuctionNotification;
use App\Notification\OutbidNotificationOnlineAuctionNotification;
use App\Notification\AuctionEndingSoon24HOnlineBiddingNotification;
use App\Notification\AuctionEndingSoon2HOnlineBiddingNotification;
use App\Notification\WinnerEmailOnlineNotification;
use App\Notification\WinnerEmailOnlineWineNotification;
use App\Notification\AuctionAlertAuctionEndingSoon24HOnlineFavoriteFollowingNotification;
use App\Notification\ALotFavoriteReceivedBidNotification;
use App\Notification\AdvanceBidNotification;
use App\Notification\PhoneBidNotification;
use App\Notification\AuctionResultsToSellerNotification;
use App\Notification\SellerObjectNotSoldSecondNotification;
use App\Notification\SellerObjectNotSoldThirdNotification;
use App\Notification\StorageFeeNumberOneNotification;
use App\Notification\StorageFeeNumberTwoStorageFeeBeginningNotification;
use App\Notification\AutomaticPaymentSuccessfullReceiptAttachedAsPDFNotification;
use App\Notification\PaymentReceiptReceiptAttachedAsPDFNotification;
use App\Notification\CardPaymentUnsuccessfulLateFeeNotification;
use App\Notification\BankCardExpiresSoonNotification;
use App\Notification\BankCardExpiredNotification;
use App\Notification\InactiveUserFirstNoticeNotification;
use App\Notification\InactiveUserProfileClosedNotification;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20220525160424 extends AbstractMigration
{
public function getDescription(): string
{
return 'Update notification_template categories';
}
public function up(Schema $schema): void
{
$this->addSql("UPDATE notification_template SET category = NULL, setting = NULL, profile_default = NULL, icon = NULL, color = NULL WHERE notification_type = " . UserProfileIsUpdatedNotification::TYPE);
$this->addSql("UPDATE notification_template SET category = NULL, setting = NULL, profile_default = NULL, icon = NULL, color = NULL WHERE notification_type = " . UserPasswordUpdatedNotification::TYPE);
$this->addSql("UPDATE notification_template SET category = NULL, setting = NULL, profile_default = NULL, icon = NULL, color = NULL WHERE notification_type = " . UserPaymentCardUpdatedNotification::TYPE);
$this->addSql("UPDATE notification_template SET category = NULL, setting = NULL, profile_default = NULL, icon = NULL, color = 'yellow' WHERE notification_type = " . PasswordResetEmailNotification::TYPE);
$this->addSql("UPDATE notification_template SET category = 'Mine bud', setting = 21, profile_default = 6, icon = NULL, color = NULL WHERE notification_type = " . BidConfirmationOnlineAuctionNotification::TYPE);
$this->addSql("UPDATE notification_template SET category = 'Mine bud', setting = 21, profile_default = 6, icon = NULL, color = NULL WHERE notification_type = " . OutbidNotificationOnlineAuctionNotification::TYPE);
$this->addSql("UPDATE notification_template SET category = 'Mine bud', setting = 21, profile_default = 6, icon = NULL, color = NULL WHERE notification_type = " . AuctionEndingSoon24HOnlineBiddingNotification::TYPE);
$this->addSql("UPDATE notification_template SET category = 'Mine bud', setting = 21, profile_default = 6, icon = NULL, color = NULL WHERE notification_type = " . AuctionEndingSoon2HOnlineBiddingNotification::TYPE);
$this->addSql("UPDATE notification_template SET category = 'Mine bud', setting = 29, profile_default = 6, icon = NULL, color = 'yellow' WHERE notification_type = " . WinnerEmailOnlineNotification::TYPE);
$this->addSql("UPDATE notification_template SET category = 'Mine bud', setting = 29, profile_default = 6, icon = NULL, color = 'yellow' WHERE notification_type = " . WinnerEmailOnlineWineNotification::TYPE);
$this->addSql("UPDATE notification_template SET category = 'Mine favoritter', setting = 21, profile_default = 6, icon = NULL, color = NULL WHERE notification_type = " . AuctionAlertAuctionEndingSoon24HOnlineFavoriteFollowingNotification::TYPE);
$this->addSql("UPDATE notification_template SET category = 'Mine favoritter', setting = 21, profile_default = 4, icon = NULL, color = NULL WHERE notification_type = " . ALotFavoriteReceivedBidNotification::TYPE);
$this->addSql("UPDATE notification_template SET category = 'Mine bud', setting = 20, profile_default = 6, icon = NULL, color = NULL WHERE notification_type = " . AdvanceBidNotification::TYPE);
$this->addSql("UPDATE notification_template SET category = 'Mine bud', setting = 20, profile_default = 6, icon = NULL, color = NULL WHERE notification_type = " . PhoneBidNotification::TYPE);
$this->addSql("UPDATE notification_template SET category = 'Mine salg', setting = 21, profile_default = 6, icon = NULL, color = 'yellow' WHERE notification_type = " . AuctionResultsToSellerNotification::TYPE);
$this->addSql("UPDATE notification_template SET category = 'Mine salg', setting = 28, profile_default = 6, icon = NULL, color = 'yellow' WHERE notification_type = " . SellerObjectNotSoldSecondNotification::TYPE);
$this->addSql("UPDATE notification_template SET category = 'Mine salg', setting = 28, profile_default = 6, icon = NULL, color = 'yellow' WHERE notification_type = " . SellerObjectNotSoldThirdNotification::TYPE);
$this->addSql("UPDATE notification_template SET category = 'Meldinger fra Blomqvist', setting = 29, profile_default = 6, icon = NULL, color = 'yellow' WHERE notification_type = " . StorageFeeNumberOneNotification::TYPE);
$this->addSql("UPDATE notification_template SET category = 'Meldinger fra Blomqvist', setting = 29, profile_default = 6, icon = NULL, color = 'yellow' WHERE notification_type = " . StorageFeeNumberTwoStorageFeeBeginningNotification::TYPE);
$this->addSql("UPDATE notification_template SET category = 'Meldinger fra Blomqvist', setting = 29, profile_default = 6, icon = NULL, color = 'yellow' WHERE notification_type = " . AutomaticPaymentSuccessfullReceiptAttachedAsPDFNotification::TYPE);
$this->addSql("UPDATE notification_template SET category = 'Meldinger fra Blomqvist', setting = 29, profile_default = 6, icon = NULL, color = 'yellow' WHERE notification_type = " . PaymentReceiptReceiptAttachedAsPDFNotification::TYPE);
$this->addSql("UPDATE notification_template SET category = 'Meldinger fra Blomqvist', setting = 29, profile_default = 6, icon = NULL, color = 'red' WHERE notification_type = " . CardPaymentUnsuccessfulLateFeeNotification::TYPE);
$this->addSql("UPDATE notification_template SET category = 'Meldinger fra Blomqvist', setting = 20, profile_default = 6, icon = NULL, color = 'yellow' WHERE notification_type = " . BankCardExpiresSoonNotification::TYPE);
$this->addSql("UPDATE notification_template SET category = 'Meldinger fra Blomqvist', setting = 21, profile_default = 6, icon = NULL, color = 'red' WHERE notification_type = " . BankCardExpiredNotification::TYPE);
$this->addSql("UPDATE notification_template SET category = 'Meldinger fra Blomqvist', setting = NULL, profile_default = NULL, icon = NULL, color = 'red' WHERE notification_type = " . InactiveUserFirstNoticeNotification::TYPE);
$this->addSql("UPDATE notification_template SET category = 'Meldinger fra Blomqvist', setting = NULL, profile_default = NULL, icon = NULL, color = 'red' WHERE notification_type = " . InactiveUserProfileClosedNotification::TYPE);
}
public function down(Schema $schema): void
{
}
}