<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
/**
* Auto-generated Migration: Please modify to your needs!
*/
class Version20211025125715 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->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
$this->addSql('ALTER TABLE package CHANGE type type VARCHAR(255) DEFAULT NULL, CHANGE photo_profil photo_profil VARCHAR(255) DEFAULT NULL, CHANGE etat etat TINYINT(1) DEFAULT NULL');
$this->addSql('ALTER TABLE infos_formule_base CHANGE description description LONGTEXT DEFAULT NULL, CHANGE photo_profil photo_profil LONGTEXT DEFAULT NULL, CHANGE id_iresa id_iresa INT DEFAULT NULL, CHANGE type type LONGTEXT DEFAULT NULL');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
$this->addSql('DROP TABLE lang');
$this->addSql('ALTER TABLE infos_formule_base CHANGE type type VARCHAR(255) DEFAULT NULL COLLATE utf8_unicode_ci, CHANGE id_iresa id_iresa INT DEFAULT 0, CHANGE photo_profil photo_profil VARCHAR(255) DEFAULT NULL COLLATE utf8_unicode_ci, CHANGE description description VARCHAR(255) DEFAULT NULL COLLATE utf8_unicode_ci');
$this->addSql('ALTER TABLE package CHANGE type type VARCHAR(255) NOT NULL COLLATE utf8_unicode_ci, CHANGE photo_profil photo_profil VARCHAR(255) NOT NULL COLLATE utf8_unicode_ci, CHANGE etat etat SMALLINT NOT NULL');
}
}