migrations/Version20220305193540.php line 1

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace DoctrineMigrations;
  4. //use App\Notification\AdvanceBidInAObjectNotification;
  5. //use App\Notification\PhoneBidInAObjectNotification;
  6. use Doctrine\DBAL\Schema\Schema;
  7. use Doctrine\Migrations\AbstractMigration;
  8. /**
  9.  * Auto-generated Migration: Please modify to your needs!
  10.  */
  11. final class Version20220305193540 extends AbstractMigration
  12. {
  13.     public function getDescription(): string
  14.     {
  15.         return 'Create new types of notifications';
  16.     }
  17.     public function up(Schema $schema): void
  18.     {
  19. //        $this->addSql('INSERT INTO notification_template VALUES(DEFAULT, ' . AdvanceBidInAObjectNotification::TYPE . ', "Customer %customer_name% send a new bid to the object number %object_number%, value: %value%; <br>Address: %address%, %address1%, %post_number%, %country%", null, "New Advance Bid" ,NOW(), NOW(), null)');
  20. //        $this->addSql('INSERT INTO notification_template VALUES(DEFAULT, ' . PhoneBidInAObjectNotification::TYPE . ', "Customer %customer_name% send a new phone bid to the object number %object_number%, message: %message%; <br>Address: %address%, %address1%, %post_number%, %country%", null, "New Phone Bid" ,NOW(), NOW(), null)');
  21.     }
  22.     public function down(Schema $schema): void
  23.     {
  24. //        $this->addSql('DELETE FROM notification_template WHERE notification_type=' . AdvanceBidInAObjectNotification::TYPE);
  25. //        $this->addSql('DELETE FROM notification_template WHERE notification_type=' . PhoneBidInAObjectNotification::TYPE);
  26.     }
  27. }