app/DoctrineMigrations/Version20250228043219.php line 1

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace DoctrineMigrations;
  4. use Doctrine\DBAL\Schema\Schema;
  5. use Doctrine\Migrations\AbstractMigration;
  6. /**
  7.  * Auto-generated Migration: Please modify to your needs!
  8.  */
  9. final class Version20250228043219 extends AbstractMigration
  10. {
  11.     public function getDescription(): string
  12.     {
  13.         return 'Create column AccessID and AccessPass to dtb_order table';
  14.     }
  15.     public function up(Schema $schema): void
  16.     {
  17.         $table $schema->getTable('dtb_order');
  18.         $table->addColumn('access_id''string', [
  19.             'notnull' => false,
  20.             'length' => 255
  21.         ]);
  22.         $table->addColumn('access_pass''string', [
  23.             'notnull' => false,
  24.             'length' => 255
  25.         ]);
  26.     }
  27.     public function down(Schema $schema): void
  28.     {
  29.         $table $schema->getTable('dtb_order');
  30.         $table->dropColumn('access_id');
  31.         $table->dropColumn('access_pass');
  32.     }
  33. }