<?php

namespace Application\Migrations;

use Doctrine\DBAL\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;

/**
 * Auto-generated Migration: Please modify to your needs!
 */
class Version20170810234758 extends AbstractMigration
{
    /**
     * @param Schema $schema
     */
    public function up(Schema $schema)
    {
        // this up() migration is auto-generated, please modify it to your needs
        $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'postgresql', 'Migration can only be executed safely on \'postgresql\'.');

        $this->addSql('ALTER TABLE operationpee ADD site_image1_path VARCHAR(255) DEFAULT NULL');
        $this->addSql('ALTER TABLE operationpee ADD site_image2_path VARCHAR(255) DEFAULT NULL');
        $this->addSql('ALTER TABLE operationpee ADD site_image3_path VARCHAR(255) DEFAULT NULL');
    }

    /**
     * @param Schema $schema
     */
    public function down(Schema $schema)
    {
        // this down() migration is auto-generated, please modify it to your needs
        $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'postgresql', 'Migration can only be executed safely on \'postgresql\'.');

        $this->addSql('ALTER TABLE OperationPEE DROP site_image1_path');
        $this->addSql('ALTER TABLE OperationPEE DROP site_image2_path');
        $this->addSql('ALTER TABLE OperationPEE DROP site_image3_path');
    }
}
