<?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 Version20210720114504 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 SEQUENCE invoices_attashments_id_seq RENAME TO invoices_attachments_id_seq');
$this->addSql('ALTER TABLE invoices_attashments RENAME TO invoices_attachments');
$this->addSql('ALTER TABLE invoices_attachments RENAME COLUMN image TO file_path');
$this->addSql('ALTER TABLE invoices_comments_attachments RENAME COLUMN image TO file_path');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER SEQUENCE invoices_attachments_id_seq RENAME TO invoices_attashments_id_seq');
$this->addSql('ALTER TABLE invoices_attachments RENAME TO invoices_attashments');
$this->addSql('ALTER TABLE invoices_attashments RENAME COLUMN file_path TO image');
$this->addSql('ALTER TABLE invoices_comments_attachments RENAME COLUMN file_path TO image');
}
}