migrations/Version20230524091221.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 Version20230524091221 extends AbstractMigration
  10. {
  11.     public function getDescription(): string
  12.     {
  13.         return '';
  14.     }
  15.     public function up(Schema $schema): void
  16.     {
  17.         // this up() migration is auto-generated, please modify it to your needs
  18.         $this->addSql(
  19.             '
  20.                 ALTER TABLE oim_case_tasks
  21.                     CHANGE description
  22.                         description TEXT NOT NULL COMMENT \'description of this task\'
  23.             '
  24.         );
  25.         $this->addSql(
  26.             '
  27.                 ALTER TABLE oim_conversations
  28.                     CHANGE conversation_notes
  29.                         conversation_notes TEXT DEFAULT NULL COMMENT \'Notes of this conversation\',
  30.                     CHANGE conversation_conducted_by
  31.                         conversation_conducted_by VARCHAR(255) DEFAULT NULL
  32.                         COMMENT \'Person who conducted this conversation\'
  33.             '
  34.         );
  35.         $this->addSql(
  36.             '
  37.                 ALTER TABLE oim_measures
  38.                     CHANGE measure_id
  39.                         measure_id INT NOT NULL COMMENT \'Internal ID\',
  40.                     CHANGE description
  41.                         description TEXT DEFAULT NULL COMMENT \'description of this measure\',
  42.                     CHANGE date_from
  43.                         date_from DATETIME NOT NULL COMMENT \'start date of measure\',
  44.                     CHANGE date_to
  45.                         date_to DATETIME NOT NULL COMMENT \'end date of measure\',
  46.                     CHANGE finish_comment
  47.                         finish_comment TEXT DEFAULT NULL COMMENT \'comment after finished measure\'
  48.             '
  49.         );
  50.     }
  51.     public function down(Schema $schema): void
  52.     {
  53.         // this down() migration is auto-generated, please modify it to your needs
  54.         $this->addSql('ALTER TABLE oim_case_tasks CHANGE description description MEDIUMTEXT NOT NULL COMMENT \'description of this task\'');
  55.         $this->addSql('ALTER TABLE oim_conversations CHANGE conversation_notes conversation_notes MEDIUMTEXT NOT NULL COMMENT \'Notes of this conversation\', CHANGE conversation_conducted_by conversation_conducted_by VARCHAR(255) NOT NULL COMMENT \'Person who conducted this conversation\'');
  56.         $this->addSql('ALTER TABLE oim_measures CHANGE measure_id measure_id INT DEFAULT NULL COMMENT \'Internal ID\', CHANGE description description MEDIUMTEXT NOT NULL COMMENT \'description of this measure\', CHANGE date_from date_from DATETIME DEFAULT NULL COMMENT \'start date of measure\', CHANGE date_to date_to DATETIME DEFAULT NULL COMMENT \'end date of measure\', CHANGE finish_comment finish_comment MEDIUMTEXT NOT NULL COMMENT \'comment after finished measure\'');
  57.     }
  58. }