<?php
declare(strict_types=1);
namespace CoreMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20230612080905 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('ALTER TABLE prestashop_connector_bundle__order_state_for_maj_statut DROP FOREIGN KEY FK_3DBC9F83E420DE70');
$this->addSql('DROP TABLE prestashop_connector_bundle__order_state_for_maj_statut');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('CREATE TABLE prestashop_connector_bundle__order_state_for_maj_statut (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', order_state_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', statut_name VARCHAR(25) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, INDEX IDX_3DBC9F83E420DE70 (order_state_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
$this->addSql('ALTER TABLE prestashop_connector_bundle__order_state_for_maj_statut ADD CONSTRAINT FK_3DBC9F83E420DE70 FOREIGN KEY (order_state_id) REFERENCES sales_bundle__order_state (id)');
}
}