<?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 Version20231212155300 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 membre DROP INDEX FK_F6B4FB29A76ED395, ADD UNIQUE INDEX UNIQ_F6B4FB29A76ED395 (user_id)');
$this->addSql('ALTER TABLE offre ADD descrip_offre LONGTEXT DEFAULT NULL, ADD contact VARCHAR(255) DEFAULT NULL, DROP image, DROP reference');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
// $this->addSql('ALTER TABLE membre DROP INDEX UNIQ_F6B4FB29A76ED395, ADD INDEX FK_F6B4FB29A76ED395 (user_id)');
$this->addSql('ALTER TABLE offre ADD image VARCHAR(255) NOT NULL, ADD reference VARCHAR(255) NOT NULL, DROP descrip_offre, DROP contact');
}
}