<?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 Version20220623151905 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('CREATE TABLE elements_park (id INT AUTO_INCREMENT NOT NULL, id_types_element_park_id INT DEFAULT NULL, id_client_id INT DEFAULT NULL, id_parent_id INT DEFAULT NULL, fin_garantie DATETIME DEFAULT NULL, INDEX IDX_2D6EBCFCF33AE787 (id_types_element_park_id), INDEX IDX_2D6EBCFC99DED506 (id_client_id), INDEX IDX_2D6EBCFCF24F7657 (id_parent_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE elements_park DROP FOREIGN KEY FK_2D6EBCFCF24F7657');
$this->addSql('DROP TABLE elements_park');
$this->addSql('ALTER TABLE actions DROP status_changed');
}
}