migrations/Version20220510162647.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. /**
  7.  * Auto-generated Migration: Please modify to your needs!
  8.  */
  9. final class Version20220510162647 extends AbstractMigration
  10. {
  11.     public function getDescription(): string
  12.     {
  13.         return '';
  14.     }
  15.     public function up(Schema $schema): void
  16.     {
  17.         // this up() migration is auto-generated, please modify it to your needs
  18.         $this->addSql('CREATE SEQUENCE recallr_id_seq INCREMENT BY 1 MINVALUE 1 START 1');
  19.         $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))');
  20.     }
  21.     public function down(Schema $schema): void
  22.     {
  23.         // this down() migration is auto-generated, please modify it to your needs
  24.         $this->addSql('CREATE SCHEMA public');
  25.         $this->addSql('DROP SEQUENCE recallr_id_seq CASCADE');
  26.         $this->addSql('DROP TABLE recallr');
  27.     }
  28. }