<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20211116142807 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('CREATE TABLE store_payment_method (id CHAR(36) NOT NULL COMMENT \'(DC2Type:uuid)\', delivery_method_id CHAR(36) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', code VARCHAR(255) DEFAULT NULL, description VARCHAR(255) DEFAULT NULL, min_amount NUMERIC(10, 2) NOT NULL, fee_amount NUMERIC(10, 2) NOT NULL, no_fee_amount NUMERIC(10, 2) NOT NULL, has_issuers TINYINT(1) NOT NULL, has_debtors TINYINT(1) NOT NULL, allow_on_tab_without_debtor TINYINT(1) NOT NULL, sort INT NOT NULL, ntf_id INT DEFAULT NULL, updated_at DATETIME DEFAULT NULL, created_at DATETIME DEFAULT NULL, INDEX IDX_6CF7BC285DED75F5 (delivery_method_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('ALTER TABLE store_payment_method ADD CONSTRAINT FK_6CF7BC285DED75F5 FOREIGN KEY (delivery_method_id) REFERENCES store_delivery_method (id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('DROP TABLE store_payment_method');
}
public function isTransactional(): bool
{
return false;
}
}