migrations/Version20230503081201.php line 1

Open in your IDE?
  1. <?php
  2. /* @noinspection PhpUnused */
  3. declare(strict_types=1);
  4. namespace DoctrineMigrations;
  5. use Doctrine\DBAL\Schema\Schema;
  6. use Doctrine\Migrations\AbstractMigration;
  7. /**
  8.  * Auto-generated Migration: Please modify to your needs!
  9.  *
  10.  * @package API
  11.  * @internal
  12.  */
  13. final class Version20230503081201 extends AbstractMigration
  14. {
  15.     public function down(Schema $schema): void
  16.     {
  17.         // this down() migration is auto-generated, please modify it to your needs
  18.         $this->addSql('DROP TABLE oim_internal_status');
  19.     }
  20.     public function getDescription(): string
  21.     {
  22.         return
  23.             "- Introduces OIM internal status table.";
  24.     }
  25.     public function up(Schema $schema): void
  26.     {
  27.         // this up() migration is auto-generated, please modify it to your needs
  28.         $this->addSql(
  29.             '
  30.                 CREATE TABLE oim_internal_status (
  31.                     id VARCHAR(16) NOT NULL COMMENT \'Internal status ID\',
  32.                     PRIMARY KEY(id)
  33.                 ) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB
  34.             '
  35.         );
  36.     }
  37. }