<?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 Version20250228043219 extends AbstractMigration
{
public function getDescription(): string
{
return 'Create column AccessID and AccessPass to dtb_order table';
}
public function up(Schema $schema): void
{
$table = $schema->getTable('dtb_order');
$table->addColumn('access_id', 'string', [
'notnull' => false,
'length' => 255
]);
$table->addColumn('access_pass', 'string', [
'notnull' => false,
'length' => 255
]);
}
public function down(Schema $schema): void
{
$table = $schema->getTable('dtb_order');
$table->dropColumn('access_id');
$table->dropColumn('access_pass');
}
}