migrations/Version20220525160424.php line 1

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace DoctrineMigrations;
  4. use Doctrine\DBAL\Schema\Schema;
  5. use Doctrine\Migrations\AbstractMigration;
  6. use App\Notification\UserProfileIsUpdatedNotification;
  7. use App\Notification\UserPasswordUpdatedNotification;
  8. use App\Notification\UserPaymentCardUpdatedNotification;
  9. use App\Notification\PasswordResetEmailNotification;
  10. use App\Notification\BidConfirmationOnlineAuctionNotification;
  11. use App\Notification\OutbidNotificationOnlineAuctionNotification;
  12. use App\Notification\AuctionEndingSoon24HOnlineBiddingNotification;
  13. use App\Notification\AuctionEndingSoon2HOnlineBiddingNotification;
  14. use App\Notification\WinnerEmailOnlineNotification;
  15. use App\Notification\WinnerEmailOnlineWineNotification;
  16. use App\Notification\AuctionAlertAuctionEndingSoon24HOnlineFavoriteFollowingNotification;
  17. use App\Notification\ALotFavoriteReceivedBidNotification;
  18. use App\Notification\AdvanceBidNotification;
  19. use App\Notification\PhoneBidNotification;
  20. use App\Notification\AuctionResultsToSellerNotification;
  21. use App\Notification\SellerObjectNotSoldSecondNotification;
  22. use App\Notification\SellerObjectNotSoldThirdNotification;
  23. use App\Notification\StorageFeeNumberOneNotification;
  24. use App\Notification\StorageFeeNumberTwoStorageFeeBeginningNotification;
  25. use App\Notification\AutomaticPaymentSuccessfullReceiptAttachedAsPDFNotification;
  26. use App\Notification\PaymentReceiptReceiptAttachedAsPDFNotification;
  27. use App\Notification\CardPaymentUnsuccessfulLateFeeNotification;
  28. use App\Notification\BankCardExpiresSoonNotification;
  29. use App\Notification\BankCardExpiredNotification;
  30. use App\Notification\InactiveUserFirstNoticeNotification;
  31. use App\Notification\InactiveUserProfileClosedNotification;
  32. /**
  33.  * Auto-generated Migration: Please modify to your needs!
  34.  */
  35. final class Version20220525160424 extends AbstractMigration
  36. {
  37.     public function getDescription(): string
  38.     {
  39.         return 'Update notification_template categories';
  40.     }
  41.     public function up(Schema $schema): void
  42.     {
  43.         $this->addSql("UPDATE notification_template SET category = NULL, setting = NULL, profile_default = NULL, icon = NULL, color = NULL WHERE notification_type = " UserProfileIsUpdatedNotification::TYPE);
  44.         $this->addSql("UPDATE notification_template SET category = NULL, setting = NULL, profile_default = NULL, icon = NULL, color = NULL WHERE notification_type = " UserPasswordUpdatedNotification::TYPE);
  45.         $this->addSql("UPDATE notification_template SET category = NULL, setting = NULL, profile_default = NULL, icon = NULL, color = NULL WHERE notification_type = " UserPaymentCardUpdatedNotification::TYPE);
  46.         $this->addSql("UPDATE notification_template SET category = NULL, setting = NULL, profile_default = NULL, icon = NULL, color = 'yellow' WHERE notification_type = " PasswordResetEmailNotification::TYPE);
  47.         $this->addSql("UPDATE notification_template SET category = 'Mine bud', setting = 21, profile_default = 6, icon = NULL, color = NULL WHERE notification_type = " BidConfirmationOnlineAuctionNotification::TYPE);
  48.         $this->addSql("UPDATE notification_template SET category = 'Mine bud', setting = 21, profile_default = 6, icon = NULL, color = NULL WHERE notification_type = " OutbidNotificationOnlineAuctionNotification::TYPE);
  49.         $this->addSql("UPDATE notification_template SET category = 'Mine bud', setting = 21, profile_default = 6, icon = NULL, color = NULL WHERE notification_type = " AuctionEndingSoon24HOnlineBiddingNotification::TYPE);
  50.         $this->addSql("UPDATE notification_template SET category = 'Mine bud', setting = 21, profile_default = 6, icon = NULL, color = NULL WHERE notification_type = " AuctionEndingSoon2HOnlineBiddingNotification::TYPE);
  51.         $this->addSql("UPDATE notification_template SET category = 'Mine bud', setting = 29, profile_default = 6, icon = NULL, color = 'yellow' WHERE notification_type = " WinnerEmailOnlineNotification::TYPE);
  52.         $this->addSql("UPDATE notification_template SET category = 'Mine bud', setting = 29, profile_default = 6, icon = NULL, color = 'yellow' WHERE notification_type = " WinnerEmailOnlineWineNotification::TYPE);
  53.         $this->addSql("UPDATE notification_template SET category = 'Mine favoritter', setting = 21, profile_default = 6, icon = NULL, color = NULL WHERE notification_type = " AuctionAlertAuctionEndingSoon24HOnlineFavoriteFollowingNotification::TYPE);
  54.         $this->addSql("UPDATE notification_template SET category = 'Mine favoritter', setting = 21, profile_default = 4, icon = NULL, color = NULL WHERE notification_type = " ALotFavoriteReceivedBidNotification::TYPE);
  55.         $this->addSql("UPDATE notification_template SET category = 'Mine bud', setting = 20, profile_default = 6, icon = NULL, color = NULL WHERE notification_type = " AdvanceBidNotification::TYPE);
  56.         $this->addSql("UPDATE notification_template SET category = 'Mine bud', setting = 20, profile_default = 6, icon = NULL, color = NULL WHERE notification_type = " PhoneBidNotification::TYPE);
  57.         $this->addSql("UPDATE notification_template SET category = 'Mine salg', setting = 21, profile_default = 6, icon = NULL, color = 'yellow' WHERE notification_type = " AuctionResultsToSellerNotification::TYPE);
  58.         $this->addSql("UPDATE notification_template SET category = 'Mine salg', setting = 28, profile_default = 6, icon = NULL, color = 'yellow' WHERE notification_type = " SellerObjectNotSoldSecondNotification::TYPE);
  59.         $this->addSql("UPDATE notification_template SET category = 'Mine salg', setting = 28, profile_default = 6, icon = NULL, color = 'yellow' WHERE notification_type = " SellerObjectNotSoldThirdNotification::TYPE);
  60.         $this->addSql("UPDATE notification_template SET category = 'Meldinger fra Blomqvist', setting = 29, profile_default = 6, icon = NULL, color = 'yellow' WHERE notification_type = " StorageFeeNumberOneNotification::TYPE);
  61.         $this->addSql("UPDATE notification_template SET category = 'Meldinger fra Blomqvist', setting = 29, profile_default = 6, icon = NULL, color = 'yellow' WHERE notification_type = " StorageFeeNumberTwoStorageFeeBeginningNotification::TYPE);
  62.         $this->addSql("UPDATE notification_template SET category = 'Meldinger fra Blomqvist', setting = 29, profile_default = 6, icon = NULL, color = 'yellow' WHERE notification_type = " AutomaticPaymentSuccessfullReceiptAttachedAsPDFNotification::TYPE);
  63.         $this->addSql("UPDATE notification_template SET category = 'Meldinger fra Blomqvist', setting = 29, profile_default = 6, icon = NULL, color = 'yellow' WHERE notification_type = " PaymentReceiptReceiptAttachedAsPDFNotification::TYPE);
  64.         $this->addSql("UPDATE notification_template SET category = 'Meldinger fra Blomqvist', setting = 29, profile_default = 6, icon = NULL, color = 'red' WHERE notification_type = " CardPaymentUnsuccessfulLateFeeNotification::TYPE);
  65.         $this->addSql("UPDATE notification_template SET category = 'Meldinger fra Blomqvist', setting = 20, profile_default = 6, icon = NULL, color = 'yellow' WHERE notification_type = " BankCardExpiresSoonNotification::TYPE);
  66.         $this->addSql("UPDATE notification_template SET category = 'Meldinger fra Blomqvist', setting = 21, profile_default = 6, icon = NULL, color = 'red' WHERE notification_type = " BankCardExpiredNotification::TYPE);
  67.         $this->addSql("UPDATE notification_template SET category = 'Meldinger fra Blomqvist', setting = NULL, profile_default = NULL, icon = NULL, color = 'red' WHERE notification_type = " InactiveUserFirstNoticeNotification::TYPE);
  68.         $this->addSql("UPDATE notification_template SET category = 'Meldinger fra Blomqvist', setting = NULL, profile_default = NULL, icon = NULL, color = 'red' WHERE notification_type = " InactiveUserProfileClosedNotification::TYPE);
  69.     }
  70.     public function down(Schema $schema): void
  71.     {
  72.     }
  73. }