<?php
declare(strict_types=1);
namespace DoctrineMigrations;
//use App\Notification\AdvanceBidInAObjectNotification;
//use App\Notification\PhoneBidInAObjectNotification;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20220305193540 extends AbstractMigration
{
public function getDescription(): string
{
return 'Create new types of notifications';
}
public function up(Schema $schema): void
{
// $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)');
// $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)');
}
public function down(Schema $schema): void
{
// $this->addSql('DELETE FROM notification_template WHERE notification_type=' . AdvanceBidInAObjectNotification::TYPE);
// $this->addSql('DELETE FROM notification_template WHERE notification_type=' . PhoneBidInAObjectNotification::TYPE);
}
}