<?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 Version20241003175408 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 cliente_envio_bitcubo (id INT AUTO_INCREMENT NOT NULL, cliente_bitcubo_id INT DEFAULT NULL, direccion VARCHAR(255) DEFAULT NULL, complemento VARCHAR(255) DEFAULT NULL, INDEX IDX_2A694418A5A0AD8 (cliente_bitcubo_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('ALTER TABLE cliente_envio_bitcubo ADD CONSTRAINT FK_2A694418A5A0AD8 FOREIGN KEY (cliente_bitcubo_id) REFERENCES cliente_bitcubo (id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE cliente_envio_bitcubo DROP FOREIGN KEY FK_2A694418A5A0AD8');
$this->addSql('DROP TABLE cliente_envio_bitcubo');
}
}