<?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 Version20250908140438 extends AbstractMigration
{
public function getDescription(): string
{
return 'Add address_type field to dtb_order and dtb_shipping tables';
}
public function up(Schema $schema): void
{
// Add address_type field to dtb_order table
$this->addSql('ALTER TABLE dtb_order ADD address_type INT DEFAULT 0 NOT NULL COMMENT \'Address type: 0=domestic, 1=overseas\'');
// Add address_type field to dtb_shipping table
$this->addSql('ALTER TABLE dtb_shipping ADD address_type INT DEFAULT 0 NOT NULL COMMENT \'Address type: 0=domestic, 1=overseas\'');
}
public function down(Schema $schema): void
{
// Remove address_type field from dtb_shipping table
$this->addSql('ALTER TABLE dtb_shipping DROP address_type');
// Remove address_type field from dtb_order table
$this->addSql('ALTER TABLE dtb_order DROP address_type');
}
}