migrations/Version20230524073859.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 Version20230524073859 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 NOT NULL COMMENT \'Notes of this conversation\'
  30.             '
  31.         );
  32.         $this->addSql(
  33.             '
  34.                 ALTER TABLE oim_measures
  35.                     CHANGE description
  36.                         description TEXT NOT NULL COMMENT \'description of this measure\',
  37.                     CHANGE finish_comment
  38.                         finish_comment TEXT NOT NULL COMMENT \'comment after finished measure\'
  39.             '
  40.         );
  41.         $this->addSql('ALTER TABLE stored_documents CHANGE file_path file_path VARCHAR(255) NOT NULL COMMENT \'filepath of this document\', CHANGE file_name file_name VARCHAR(255) NOT NULL COMMENT \'filename of this document\'');
  42.     }
  43.     public function down(Schema $schema): void
  44.     {
  45.         // this down() migration is auto-generated, please modify it to your needs
  46.         $this->addSql('ALTER TABLE oim_case_tasks CHANGE description description VARCHAR(225) NOT NULL COMMENT \'description of this task\'');
  47.         $this->addSql('ALTER TABLE oim_conversations CHANGE conversation_notes conversation_notes VARCHAR(225) NOT NULL COMMENT \'Notes of this conversation\'');
  48.         $this->addSql('ALTER TABLE oim_measures CHANGE description description VARCHAR(225) NOT NULL COMMENT \'description of this measure\', CHANGE finish_comment finish_comment VARCHAR(225) NOT NULL COMMENT \'comment after finished measure\'');
  49.         $this->addSql('ALTER TABLE stored_documents CHANGE file_path file_path VARCHAR(225) NOT NULL COMMENT \'filepath of this document\', CHANGE file_name file_name VARCHAR(225) NOT NULL COMMENT \'filename of this document\'');
  50.     }
  51. }