<?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 Version20220424180643 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 category (id INT AUTO_INCREMENT NOT NULL, created_by_id INT DEFAULT NULL, updated_by_id INT DEFAULT NULL, parent_id INT DEFAULT NULL, name VARCHAR(100) NOT NULL, slug VARCHAR(255) NOT NULL, image VARCHAR(255) DEFAULT NULL, created_at DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', updated_at DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', status TINYINT(1) NOT NULL, view INT DEFAULT NULL, is_post TINYINT(1) NOT NULL, is_translated TINYINT(1) NOT NULL, lang VARCHAR(255) NOT NULL, INDEX IDX_64C19C1B03A8386 (created_by_id), INDEX IDX_64C19C1896DBBDE (updated_by_id), INDEX IDX_64C19C1727ACA70 (parent_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE company (id INT AUTO_INCREMENT NOT NULL, createdby_id INT DEFAULT NULL, updatedby_id INT DEFAULT NULL, name VARCHAR(255) NOT NULL, first_name VARCHAR(255) DEFAULT NULL, last_name VARCHAR(255) DEFAULT NULL, tel VARCHAR(100) DEFAULT NULL, email VARCHAR(100) DEFAULT NULL, created_at DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', updated_at DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', status VARCHAR(20) NOT NULL, presentation LONGTEXT DEFAULT NULL, logo VARCHAR(255) DEFAULT NULL, address VARCHAR(255) DEFAULT NULL, website VARCHAR(255) DEFAULT NULL, country VARCHAR(100) DEFAULT NULL, city VARCHAR(100) DEFAULT NULL, zyp_code VARCHAR(100) DEFAULT NULL, INDEX IDX_4FBF094FF0B5AF0B (createdby_id), INDEX IDX_4FBF094FA43E35E8 (updatedby_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE contact (id INT AUTO_INCREMENT NOT NULL, first_name VARCHAR(255) NOT NULL, last_name VARCHAR(255) NOT NULL, email VARCHAR(255) NOT NULL, company_name VARCHAR(255) DEFAULT NULL, subject VARCHAR(255) NOT NULL, message LONGTEXT NOT NULL, created_at DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', is_read TINYINT(1) DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE enquete (id INT AUTO_INCREMENT NOT NULL, created_id INT DEFAULT NULL, updated_id INT DEFAULT NULL, company_id INT NOT NULL, name VARCHAR(255) NOT NULL, presentation LONGTEXT DEFAULT NULL, from_at DATETIME DEFAULT NULL COMMENT \'(DC2Type:datetime_immutable)\', end_at DATETIME DEFAULT NULL COMMENT \'(DC2Type:datetime_immutable)\', created_at DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', updated_at DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', status VARCHAR(20) NOT NULL, INDEX IDX_D6D86B295EE01E44 (created_id), INDEX IDX_D6D86B29960CC7F3 (updated_id), INDEX IDX_D6D86B29979B1AD6 (company_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE label (id INT AUTO_INCREMENT NOT NULL, createby_id INT NOT NULL, updatedby_id INT NOT NULL, name VARCHAR(255) NOT NULL, created_at DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', updated_at DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', status VARCHAR(20) DEFAULT NULL, INDEX IDX_EA750E87663CD76 (createby_id), INDEX IDX_EA750E8A43E35E8 (updatedby_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE language (id INT AUTO_INCREMENT NOT NULL, user_id INT DEFAULT NULL, language_code VARCHAR(100) NOT NULL, name VARCHAR(255) NOT NULL, created_at DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', updated_at DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', status TINYINT(1) NOT NULL, flag VARCHAR(255) DEFAULT NULL, INDEX IDX_D4DB71B5A76ED395 (user_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE language_post (language_id INT NOT NULL, post_id INT NOT NULL, INDEX IDX_688386C182F1BAF4 (language_id), INDEX IDX_688386C14B89032C (post_id), PRIMARY KEY(language_id, post_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE language_category (language_id INT NOT NULL, category_id INT NOT NULL, INDEX IDX_6AEE41FB82F1BAF4 (language_id), INDEX IDX_6AEE41FB12469DE2 (category_id), PRIMARY KEY(language_id, category_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE media (id INT AUTO_INCREMENT NOT NULL, post_id INT DEFAULT NULL, user_id INT DEFAULT NULL, title VARCHAR(255) DEFAULT NULL, description LONGTEXT DEFAULT NULL, is_post TINYINT(1) DEFAULT NULL, download INT DEFAULT NULL, is_active TINYINT(1) NOT NULL, slug VARCHAR(255) DEFAULT NULL, view INT DEFAULT NULL, created_at DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', updated_at DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', type VARCHAR(50) DEFAULT NULL, data_url VARCHAR(255) NOT NULL, INDEX IDX_6A2CA10C4B89032C (post_id), INDEX IDX_6A2CA10CA76ED395 (user_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE partner (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(255) NOT NULL, slug VARCHAR(255) DEFAULT NULL, summary LONGTEXT DEFAULT NULL, image VARCHAR(255) DEFAULT NULL, created_at DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', updated_at DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', status TINYINT(1) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE place (id INT AUTO_INCREMENT NOT NULL, parent_id INT DEFAULT NULL, addby_id INT DEFAULT NULL, updateby_id INT DEFAULT NULL, name VARCHAR(255) NOT NULL, created_at DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', updated_at DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', is_active TINYINT(1) NOT NULL, INDEX IDX_741D53CD727ACA70 (parent_id), INDEX IDX_741D53CDF93A8DEF (addby_id), INDEX IDX_741D53CD23AE0780 (updateby_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE post (id INT AUTO_INCREMENT NOT NULL, user_id INT DEFAULT NULL, author_id INT DEFAULT NULL, parent_id INT DEFAULT NULL, title VARCHAR(255) NOT NULL, summary LONGTEXT DEFAULT NULL, description LONGTEXT NOT NULL, slug VARCHAR(255) NOT NULL, image VARCHAR(255) DEFAULT NULL, created_at DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', updated_at DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', published_at DATETIME DEFAULT NULL, status TINYINT(1) NOT NULL, type VARCHAR(50) NOT NULL, view INT DEFAULT NULL, is_translated TINYINT(1) NOT NULL, lang VARCHAR(255) NOT NULL, icon VARCHAR(255) DEFAULT NULL, INDEX IDX_5A8A6C8DA76ED395 (user_id), INDEX IDX_5A8A6C8DF675F31B (author_id), INDEX IDX_5A8A6C8D727ACA70 (parent_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE post_category (post_id INT NOT NULL, category_id INT NOT NULL, INDEX IDX_B9A190604B89032C (post_id), INDEX IDX_B9A1906012469DE2 (category_id), PRIMARY KEY(post_id, category_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE question (id INT AUTO_INCREMENT NOT NULL, enquete_id INT DEFAULT NULL, label_id INT DEFAULT NULL, createby_id INT NOT NULL, updateby_id INT NOT NULL, target_id INT NOT NULL, title VARCHAR(255) NOT NULL, multiple_choice TINYINT(1) NOT NULL, comment LONGTEXT DEFAULT NULL, created_at DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', updated_at DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', ordre INT NOT NULL, status VARCHAR(20) NOT NULL, INDEX IDX_B6F7494E5FDC5003 (enquete_id), INDEX IDX_B6F7494E33B92F39 (label_id), INDEX IDX_B6F7494E7663CD76 (createby_id), INDEX IDX_B6F7494E23AE0780 (updateby_id), INDEX IDX_B6F7494E158E0B66 (target_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE response (id INT AUTO_INCREMENT NOT NULL, question_id INT NOT NULL, createdby_id INT NOT NULL, updatedby_id INT NOT NULL, title VARCHAR(255) NOT NULL, created_at DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', updated_at DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', comment LONGTEXT DEFAULT NULL, status VARCHAR(20) NOT NULL, INDEX IDX_3E7B0BFB1E27F6BF (question_id), INDEX IDX_3E7B0BFBF0B5AF0B (createdby_id), INDEX IDX_3E7B0BFBA43E35E8 (updatedby_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE target (id INT AUTO_INCREMENT NOT NULL, createdby_id INT NOT NULL, updatedby_id INT NOT NULL, name VARCHAR(255) NOT NULL, created_at DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', updated_at DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', status VARCHAR(20) NOT NULL, INDEX IDX_466F2FFCF0B5AF0B (createdby_id), INDEX IDX_466F2FFCA43E35E8 (updatedby_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE travel_program (id INT AUTO_INCREMENT NOT NULL, addby_id INT DEFAULT NULL, updateby_id INT DEFAULT NULL, place_id INT DEFAULT NULL, arrival_location_id INT DEFAULT NULL, code VARCHAR(255) NOT NULL, departure_date DATE NOT NULL, arrival_date DATE NOT NULL, status VARCHAR(50) NOT NULL, created_at DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', updated_at DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', type_travel VARCHAR(100) NOT NULL, image VARCHAR(255) DEFAULT NULL, INDEX IDX_53AEC095F93A8DEF (addby_id), INDEX IDX_53AEC09523AE0780 (updateby_id), INDEX IDX_53AEC095DA6A219 (place_id), INDEX IDX_53AEC0957C70A796 (arrival_location_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE user (id INT AUTO_INCREMENT NOT NULL, email VARCHAR(180) NOT NULL, roles JSON NOT NULL, password VARCHAR(255) NOT NULL, first_name VARCHAR(255) NOT NULL, last_name VARCHAR(255) NOT NULL, tel VARCHAR(100) DEFAULT NULL, display_name VARCHAR(255) DEFAULT NULL, created_at DATETIME DEFAULT CURRENT_TIMESTAMP NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', updated_at DATETIME DEFAULT CURRENT_TIMESTAMP NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', sexe VARCHAR(50) DEFAULT NULL, age_range VARCHAR(255) DEFAULT NULL, adress VARCHAR(255) DEFAULT NULL, profession VARCHAR(255) DEFAULT NULL, marital_status VARCHAR(100) DEFAULT NULL, last_connected_at DATETIME DEFAULT NULL COMMENT \'(DC2Type:datetime_immutable)\', status VARCHAR(20) NOT NULL, image VARCHAR(255) DEFAULT NULL, UNIQUE INDEX UNIQ_8D93D649E7927C74 (email), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE userresponse (id INT AUTO_INCREMENT NOT NULL, response_id INT NOT NULL, user_id INT DEFAULT NULL, other VARCHAR(255) DEFAULT NULL, response_at DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', INDEX IDX_123EF48CFBF32840 (response_id), INDEX IDX_123EF48CA76ED395 (user_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE messenger_messages (id BIGINT AUTO_INCREMENT NOT NULL, body LONGTEXT NOT NULL, headers LONGTEXT NOT NULL, queue_name VARCHAR(190) NOT NULL, created_at DATETIME NOT NULL, available_at DATETIME NOT NULL, delivered_at DATETIME DEFAULT NULL, INDEX IDX_75EA56E0FB7336F0 (queue_name), INDEX IDX_75EA56E0E3BD61CE (available_at), INDEX IDX_75EA56E016BA31DB (delivered_at), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('ALTER TABLE category ADD CONSTRAINT FK_64C19C1B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE category ADD CONSTRAINT FK_64C19C1896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE category ADD CONSTRAINT FK_64C19C1727ACA70 FOREIGN KEY (parent_id) REFERENCES category (id)');
$this->addSql('ALTER TABLE company ADD CONSTRAINT FK_4FBF094FF0B5AF0B FOREIGN KEY (createdby_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE company ADD CONSTRAINT FK_4FBF094FA43E35E8 FOREIGN KEY (updatedby_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE enquete ADD CONSTRAINT FK_D6D86B295EE01E44 FOREIGN KEY (created_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE enquete ADD CONSTRAINT FK_D6D86B29960CC7F3 FOREIGN KEY (updated_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE enquete ADD CONSTRAINT FK_D6D86B29979B1AD6 FOREIGN KEY (company_id) REFERENCES company (id)');
$this->addSql('ALTER TABLE label ADD CONSTRAINT FK_EA750E87663CD76 FOREIGN KEY (createby_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE label ADD CONSTRAINT FK_EA750E8A43E35E8 FOREIGN KEY (updatedby_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE language ADD CONSTRAINT FK_D4DB71B5A76ED395 FOREIGN KEY (user_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE language_post ADD CONSTRAINT FK_688386C182F1BAF4 FOREIGN KEY (language_id) REFERENCES language (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE language_post ADD CONSTRAINT FK_688386C14B89032C FOREIGN KEY (post_id) REFERENCES post (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE language_category ADD CONSTRAINT FK_6AEE41FB82F1BAF4 FOREIGN KEY (language_id) REFERENCES language (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE language_category ADD CONSTRAINT FK_6AEE41FB12469DE2 FOREIGN KEY (category_id) REFERENCES category (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE media ADD CONSTRAINT FK_6A2CA10C4B89032C FOREIGN KEY (post_id) REFERENCES post (id)');
$this->addSql('ALTER TABLE media ADD CONSTRAINT FK_6A2CA10CA76ED395 FOREIGN KEY (user_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE place ADD CONSTRAINT FK_741D53CD727ACA70 FOREIGN KEY (parent_id) REFERENCES place (id)');
$this->addSql('ALTER TABLE place ADD CONSTRAINT FK_741D53CDF93A8DEF FOREIGN KEY (addby_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE place ADD CONSTRAINT FK_741D53CD23AE0780 FOREIGN KEY (updateby_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE post ADD CONSTRAINT FK_5A8A6C8DA76ED395 FOREIGN KEY (user_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE post ADD CONSTRAINT FK_5A8A6C8DF675F31B FOREIGN KEY (author_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE post ADD CONSTRAINT FK_5A8A6C8D727ACA70 FOREIGN KEY (parent_id) REFERENCES post (id)');
$this->addSql('ALTER TABLE post_category ADD CONSTRAINT FK_B9A190604B89032C FOREIGN KEY (post_id) REFERENCES post (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE post_category ADD CONSTRAINT FK_B9A1906012469DE2 FOREIGN KEY (category_id) REFERENCES category (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE question ADD CONSTRAINT FK_B6F7494E5FDC5003 FOREIGN KEY (enquete_id) REFERENCES enquete (id)');
$this->addSql('ALTER TABLE question ADD CONSTRAINT FK_B6F7494E33B92F39 FOREIGN KEY (label_id) REFERENCES label (id)');
$this->addSql('ALTER TABLE question ADD CONSTRAINT FK_B6F7494E7663CD76 FOREIGN KEY (createby_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE question ADD CONSTRAINT FK_B6F7494E23AE0780 FOREIGN KEY (updateby_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE question ADD CONSTRAINT FK_B6F7494E158E0B66 FOREIGN KEY (target_id) REFERENCES target (id)');
$this->addSql('ALTER TABLE response ADD CONSTRAINT FK_3E7B0BFB1E27F6BF FOREIGN KEY (question_id) REFERENCES question (id)');
$this->addSql('ALTER TABLE response ADD CONSTRAINT FK_3E7B0BFBF0B5AF0B FOREIGN KEY (createdby_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE response ADD CONSTRAINT FK_3E7B0BFBA43E35E8 FOREIGN KEY (updatedby_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE target ADD CONSTRAINT FK_466F2FFCF0B5AF0B FOREIGN KEY (createdby_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE target ADD CONSTRAINT FK_466F2FFCA43E35E8 FOREIGN KEY (updatedby_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE travel_program ADD CONSTRAINT FK_53AEC095F93A8DEF FOREIGN KEY (addby_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE travel_program ADD CONSTRAINT FK_53AEC09523AE0780 FOREIGN KEY (updateby_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE travel_program ADD CONSTRAINT FK_53AEC095DA6A219 FOREIGN KEY (place_id) REFERENCES place (id)');
$this->addSql('ALTER TABLE travel_program ADD CONSTRAINT FK_53AEC0957C70A796 FOREIGN KEY (arrival_location_id) REFERENCES place (id)');
$this->addSql('ALTER TABLE userresponse ADD CONSTRAINT FK_123EF48CFBF32840 FOREIGN KEY (response_id) REFERENCES response (id)');
$this->addSql('ALTER TABLE userresponse ADD CONSTRAINT FK_123EF48CA76ED395 FOREIGN KEY (user_id) REFERENCES user (id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE category DROP FOREIGN KEY FK_64C19C1727ACA70');
$this->addSql('ALTER TABLE language_category DROP FOREIGN KEY FK_6AEE41FB12469DE2');
$this->addSql('ALTER TABLE post_category DROP FOREIGN KEY FK_B9A1906012469DE2');
$this->addSql('ALTER TABLE enquete DROP FOREIGN KEY FK_D6D86B29979B1AD6');
$this->addSql('ALTER TABLE question DROP FOREIGN KEY FK_B6F7494E5FDC5003');
$this->addSql('ALTER TABLE question DROP FOREIGN KEY FK_B6F7494E33B92F39');
$this->addSql('ALTER TABLE language_post DROP FOREIGN KEY FK_688386C182F1BAF4');
$this->addSql('ALTER TABLE language_category DROP FOREIGN KEY FK_6AEE41FB82F1BAF4');
$this->addSql('ALTER TABLE place DROP FOREIGN KEY FK_741D53CD727ACA70');
$this->addSql('ALTER TABLE travel_program DROP FOREIGN KEY FK_53AEC095DA6A219');
$this->addSql('ALTER TABLE travel_program DROP FOREIGN KEY FK_53AEC0957C70A796');
$this->addSql('ALTER TABLE language_post DROP FOREIGN KEY FK_688386C14B89032C');
$this->addSql('ALTER TABLE media DROP FOREIGN KEY FK_6A2CA10C4B89032C');
$this->addSql('ALTER TABLE post DROP FOREIGN KEY FK_5A8A6C8D727ACA70');
$this->addSql('ALTER TABLE post_category DROP FOREIGN KEY FK_B9A190604B89032C');
$this->addSql('ALTER TABLE response DROP FOREIGN KEY FK_3E7B0BFB1E27F6BF');
$this->addSql('ALTER TABLE userresponse DROP FOREIGN KEY FK_123EF48CFBF32840');
$this->addSql('ALTER TABLE question DROP FOREIGN KEY FK_B6F7494E158E0B66');
$this->addSql('ALTER TABLE category DROP FOREIGN KEY FK_64C19C1B03A8386');
$this->addSql('ALTER TABLE category DROP FOREIGN KEY FK_64C19C1896DBBDE');
$this->addSql('ALTER TABLE company DROP FOREIGN KEY FK_4FBF094FF0B5AF0B');
$this->addSql('ALTER TABLE company DROP FOREIGN KEY FK_4FBF094FA43E35E8');
$this->addSql('ALTER TABLE enquete DROP FOREIGN KEY FK_D6D86B295EE01E44');
$this->addSql('ALTER TABLE enquete DROP FOREIGN KEY FK_D6D86B29960CC7F3');
$this->addSql('ALTER TABLE label DROP FOREIGN KEY FK_EA750E87663CD76');
$this->addSql('ALTER TABLE label DROP FOREIGN KEY FK_EA750E8A43E35E8');
$this->addSql('ALTER TABLE language DROP FOREIGN KEY FK_D4DB71B5A76ED395');
$this->addSql('ALTER TABLE media DROP FOREIGN KEY FK_6A2CA10CA76ED395');
$this->addSql('ALTER TABLE place DROP FOREIGN KEY FK_741D53CDF93A8DEF');
$this->addSql('ALTER TABLE place DROP FOREIGN KEY FK_741D53CD23AE0780');
$this->addSql('ALTER TABLE post DROP FOREIGN KEY FK_5A8A6C8DA76ED395');
$this->addSql('ALTER TABLE post DROP FOREIGN KEY FK_5A8A6C8DF675F31B');
$this->addSql('ALTER TABLE question DROP FOREIGN KEY FK_B6F7494E7663CD76');
$this->addSql('ALTER TABLE question DROP FOREIGN KEY FK_B6F7494E23AE0780');
$this->addSql('ALTER TABLE response DROP FOREIGN KEY FK_3E7B0BFBF0B5AF0B');
$this->addSql('ALTER TABLE response DROP FOREIGN KEY FK_3E7B0BFBA43E35E8');
$this->addSql('ALTER TABLE target DROP FOREIGN KEY FK_466F2FFCF0B5AF0B');
$this->addSql('ALTER TABLE target DROP FOREIGN KEY FK_466F2FFCA43E35E8');
$this->addSql('ALTER TABLE travel_program DROP FOREIGN KEY FK_53AEC095F93A8DEF');
$this->addSql('ALTER TABLE travel_program DROP FOREIGN KEY FK_53AEC09523AE0780');
$this->addSql('ALTER TABLE userresponse DROP FOREIGN KEY FK_123EF48CA76ED395');
$this->addSql('DROP TABLE category');
$this->addSql('DROP TABLE company');
$this->addSql('DROP TABLE contact');
$this->addSql('DROP TABLE enquete');
$this->addSql('DROP TABLE label');
$this->addSql('DROP TABLE language');
$this->addSql('DROP TABLE language_post');
$this->addSql('DROP TABLE language_category');
$this->addSql('DROP TABLE media');
$this->addSql('DROP TABLE partner');
$this->addSql('DROP TABLE place');
$this->addSql('DROP TABLE post');
$this->addSql('DROP TABLE post_category');
$this->addSql('DROP TABLE question');
$this->addSql('DROP TABLE response');
$this->addSql('DROP TABLE target');
$this->addSql('DROP TABLE travel_program');
$this->addSql('DROP TABLE user');
$this->addSql('DROP TABLE userresponse');
$this->addSql('DROP TABLE messenger_messages');
}
}