<?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 Version20220510162647 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 SEQUENCE recallr_id_seq INCREMENT BY 1 MINVALUE 1 START 1');
$this->addSql('CREATE TABLE recallr (id INT NOT NULL, recallr_id INT NOT NULL, recall_rsepa_message_id INT NOT NULL, cxl_id INT NOT NULL, status_id INT NOT NULL, status_label VARCHAR(255) NOT NULL, reason_code VARCHAR(255) NOT NULL, additional_information VARCHAR(255) NOT NULL, client_id INT NOT NULL, client_name VARCHAR(255) NOT NULL, user_id INT NOT NULL, user_type_id INT NOT NULL, user_name VARCHAR(255) NOT NULL, user_status_id INT NOT NULL, wallet_id INT NOT NULL, wallet_status_id INT NOT NULL, wallet_activation_date VARCHAR(255) NOT NULL, wallet_desactivation_date VARCHAR(255) DEFAULT NULL, sctr_id INT NOT NULL, sctr_tx_id INT NOT NULL, sctr_amount VARCHAR(255) NOT NULL, sctr_settelment_date VARCHAR(255) NOT NULL, sctr_dbtr_iban VARCHAR(255) NOT NULL, sctr_dbtr_bic VARCHAR(255) NOT NULL, sctr_dbtr_name VARCHAR(255) NOT NULL, response_sepa_message_id INT NOT NULL, received_date VARCHAR(255) DEFAULT NULL, payin_refund_id INT NOT NULL, response_type INT NOT NULL, negative_response_reason_code VARCHAR(255) NOT NULL, negative_response_additional_information VARCHAR(255) NOT NULL, response_comment VARCHAR(255) NOT NULL, bo_response BOOLEAN NOT NULL, frozen_wallet_following_recallr BOOLEAN NOT NULL, automatic_response VARCHAR(255) NOT NULL, comment VARCHAR(255) NOT NULL, fraud_confirmed BOOLEAN NOT NULL, partial_refund BOOLEAN NOT NULL, in_error BOOLEAN NOT NULL, created_date VARCHAR(255) NOT NULL, updated_date VARCHAR(255) NULL, PRIMARY KEY(id))');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('CREATE SCHEMA public');
$this->addSql('DROP SEQUENCE recallr_id_seq CASCADE');
$this->addSql('DROP TABLE recallr');
}
}