<?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 Version20240417035326 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 seller_zoom_configuration (id INT AUTO_INCREMENT NOT NULL, seller_id INT NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME DEFAULT NULL, document_type VARCHAR(1) NOT NULL, document_number VARCHAR(13) NOT NULL, phone VARCHAR(13) NOT NULL, address VARCHAR(400) NOT NULL, building VARCHAR(400) NOT NULL, state_code INT NOT NULL, city_code INT NOT NULL, UNIQUE INDEX UNIQ_552DB11D8DE820D9 (seller_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('ALTER TABLE seller_zoom_configuration ADD CONSTRAINT FK_552DB11D8DE820D9 FOREIGN KEY (seller_id) REFERENCES seller (id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('DROP TABLE seller_zoom_configuration');
}
}