migrations/Version20220922142503.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 Version20220922142503 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('COMMENT ON TABLE category IS \'Категории\'');
  19.         $this->addSql('COMMENT ON TABLE tag IS \'Теги\'');
  20.         $this->addSql('COMMENT ON TABLE news IS \'Новости\'');
  21.         $this->addSql('COMMENT ON COLUMN category.name IS \'Наименование\'');
  22.         $this->addSql('COMMENT ON COLUMN news.name IS \'Наименование\'');
  23.         $this->addSql('COMMENT ON COLUMN news.description IS \'Описание\'');
  24.         $this->addSql('COMMENT ON COLUMN tag.name IS \'Наименование\'');
  25.     }
  26.     public function down(Schema $schema): void
  27.     {
  28.         // this down() migration is auto-generated, please modify it to your needs
  29.         $this->addSql('COMMENT ON COLUMN category.name IS NULL');
  30.         $this->addSql('COMMENT ON COLUMN tag.name IS NULL');
  31.         $this->addSql('COMMENT ON COLUMN news.name IS NULL');
  32.         $this->addSql('COMMENT ON COLUMN news.description IS NULL');
  33.     }
  34. }