<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20221021123437 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE file ADD url VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE file DROP path');
$this->addSql('ALTER TABLE file DROP original_filename');
$this->addSql('ALTER TABLE file DROP alt');
$this->addSql('COMMENT ON COLUMN file.url IS \'Url к файлу\'');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE file ADD path VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE file ADD original_filename VARCHAR(255) NOT NULL');
$this->addSql('ALTER TABLE file ADD alt VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE file DROP url');
$this->addSql('COMMENT ON COLUMN file.path IS \'Путь к файлу\'');
$this->addSql('COMMENT ON COLUMN file.original_filename IS \'Оригинальное имя файла\'');
$this->addSql('COMMENT ON COLUMN file.alt IS \'Аттрибут Alt\'');
}
}