<?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 Version20240222040621 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 `suppliers` CHANGE `physical_address` `area` VARCHAR(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL;');
$this->addSql('ALTER TABLE `purchasing_groups` CHANGE `physical_address` `area` VARCHAR(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL;');
$this->addSql('ALTER TABLE suppliers ADD address LONGTEXT NOT NULL AFTER area,
ADD city BIGINT NOT NULL AFTER address , ADD state BIGINT NOT NULL AFTER city,
ADD country BIGINT NOT NULL AFTER state, ADD zipcode VARCHAR(255) NOT NULL AFTER country');
$this->addSql('ALTER TABLE purchasing_groups ADD address LONGTEXT NOT NULL AFTER area,
ADD city BIGINT NOT NULL AFTER address , ADD state BIGINT NOT NULL AFTER city,
ADD country BIGINT NOT NULL AFTER state, ADD zipcode VARCHAR(255) NOT NULL AFTER country');
}
public function down(Schema $schema): void
{
}
}