<?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 Version20230906083942 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 bookmark DROP FOREIGN KEY FK_DA62921DA894E7A8');
$this->addSql('CREATE TABLE bopartner_profile_game_quiz_mapping (bopartner_profile_id INT NOT NULL, game_quiz_id INT NOT NULL, INDEX IDX_991ED16731CCFFD (bopartner_profile_id), INDEX IDX_991ED1610FEAE5A (game_quiz_id), PRIMARY KEY(bopartner_profile_id, game_quiz_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE bopartner_profile_offer_mapping (bopartner_profile_id INT NOT NULL, offer_id INT NOT NULL, INDEX IDX_8DE7C27D731CCFFD (bopartner_profile_id), INDEX IDX_8DE7C27D53C674EE (offer_id), PRIMARY KEY(bopartner_profile_id, offer_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE color (id INT AUTO_INCREMENT NOT NULL, color_group_id INT DEFAULT NULL, color_name VARCHAR(100) NOT NULL, INDEX IDX_665648E922D14205 (color_group_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE color_group (id INT AUTO_INCREMENT NOT NULL, group_name VARCHAR(100) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE company_profile_game_quiz_mapping (company_profile_id INT NOT NULL, game_quiz_id INT NOT NULL, INDEX IDX_D243CFE57174FB2E (company_profile_id), INDEX IDX_D243CFE510FEAE5A (game_quiz_id), PRIMARY KEY(company_profile_id, game_quiz_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE company_profile_interest_field_mapping (company_profile_id INT NOT NULL, interest_field_id INT NOT NULL, INDEX IDX_986447977174FB2E (company_profile_id), INDEX IDX_9864479738E49270 (interest_field_id), PRIMARY KEY(company_profile_id, interest_field_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE company_profile_offer_mapping (company_profile_id INT NOT NULL, offer_id INT NOT NULL, INDEX IDX_DFDC4A447174FB2E (company_profile_id), INDEX IDX_DFDC4A4453C674EE (offer_id), PRIMARY KEY(company_profile_id, offer_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE game_quiz (id INT AUTO_INCREMENT NOT NULL, created_at DATETIME NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE icon (id INT AUTO_INCREMENT NOT NULL, icon_category_id INT DEFAULT NULL, icon_value VARCHAR(100) NOT NULL, INDEX IDX_659429DB42B0E3D4 (icon_category_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE icon_category (id INT AUTO_INCREMENT NOT NULL, category_name VARCHAR(191) NOT NULL, position INT NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE interest_field (id INT AUTO_INCREMENT NOT NULL, interest_name VARCHAR(191) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE job_interest_field_mapping (job_id INT NOT NULL, interest_field_id INT NOT NULL, INDEX IDX_5E74C569BE04EA9 (job_id), INDEX IDX_5E74C56938E49270 (interest_field_id), PRIMARY KEY(job_id, interest_field_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE job_expert_term_mapping (job_id INT NOT NULL, job_expert_term_id INT NOT NULL, INDEX IDX_F604BD1FBE04EA9 (job_id), INDEX IDX_F604BD1FEE3710B5 (job_expert_term_id), PRIMARY KEY(job_id, job_expert_term_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE job_daily_routine_job_mapping (job_daily_routine_id INT NOT NULL, job_id INT NOT NULL, INDEX IDX_8B71BD6D27F8922 (job_daily_routine_id), INDEX IDX_8B71BD6BE04EA9 (job_id), PRIMARY KEY(job_daily_routine_id, job_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE job_daily_routine_tag_mapping (job_daily_routine_id INT NOT NULL, tag_id INT NOT NULL, INDEX IDX_A06981E7D27F8922 (job_daily_routine_id), INDEX IDX_A06981E7BAD26311 (tag_id), PRIMARY KEY(job_daily_routine_id, tag_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE job_expert_term (id INT AUTO_INCREMENT NOT NULL, bic_id VARCHAR(255) DEFAULT NULL, term_name VARCHAR(191) NOT NULL, description LONGTEXT DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE job_redirect (id INT AUTO_INCREMENT NOT NULL, job_src_id INT DEFAULT NULL, job_dest_id INT DEFAULT NULL, job_redirect_type_id INT DEFAULT NULL, INDEX IDX_A44B3B505FF1042D (job_src_id), INDEX IDX_A44B3B50E36C2F0C (job_dest_id), INDEX IDX_A44B3B50AE7EAC79 (job_redirect_type_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE job_redirect_type (id INT AUTO_INCREMENT NOT NULL, type_name VARCHAR(191) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE job_salary (id INT AUTO_INCREMENT NOT NULL, job_id INT DEFAULT NULL, ams_id VARCHAR(191) DEFAULT NULL, created_at DATETIME NOT NULL, UNIQUE INDEX UNIQ_C41796F0BE04EA9 (job_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE job_salary_entry (id INT AUTO_INCREMENT NOT NULL, job_salary_id INT DEFAULT NULL, job_salary_type_id INT DEFAULT NULL, salary_from VARCHAR(10) DEFAULT NULL, salary_to VARCHAR(10) DEFAULT NULL, url_ext VARCHAR(2048) DEFAULT NULL, created_at DATETIME NOT NULL, INDEX IDX_B1A5EBFF774D1E7F (job_salary_id), INDEX IDX_B1A5EBFFC031469A (job_salary_type_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE job_salary_type (id INT AUTO_INCREMENT NOT NULL, type_name VARCHAR(191) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE offer (id INT AUTO_INCREMENT NOT NULL, offer_name VARCHAR(191) NOT NULL, visible_name VARCHAR(191) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE offer_profile_type_mapping (offer_id INT NOT NULL, profile_type_id INT NOT NULL, INDEX IDX_123AF5B053C674EE (offer_id), INDEX IDX_123AF5B016F2520F (profile_type_id), PRIMARY KEY(offer_id, profile_type_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE profile_link (id INT AUTO_INCREMENT NOT NULL, created_at DATETIME NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE profile_link_entry (id INT AUTO_INCREMENT NOT NULL, profile_links_id INT DEFAULT NULL, profile_link_type_id INT DEFAULT NULL, link_value VARCHAR(2048) NOT NULL, INDEX IDX_43F1F6F339B4393C (profile_links_id), INDEX IDX_43F1F6F3F82971B (profile_link_type_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE profile_link_type (id INT AUTO_INCREMENT NOT NULL, type_name VARCHAR(50) NOT NULL, visible_name VARCHAR(150) NOT NULL, position SMALLINT NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE school_interest_field_mapping (school_id INT NOT NULL, interest_field_id INT NOT NULL, INDEX IDX_5332ECDDC32A47EE (school_id), INDEX IDX_5332ECDD38E49270 (interest_field_id), PRIMARY KEY(school_id, interest_field_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE school_profile_game_quiz_mapping (school_profile_id INT NOT NULL, game_quiz_id INT NOT NULL, INDEX IDX_AA887732795B924A (school_profile_id), INDEX IDX_AA88773210FEAE5A (game_quiz_id), PRIMARY KEY(school_profile_id, game_quiz_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE school_profile_offer_mapping (school_profile_id INT NOT NULL, offer_id INT NOT NULL, INDEX IDX_9C8ED683795B924A (school_profile_id), INDEX IDX_9C8ED68353C674EE (offer_id), PRIMARY KEY(school_profile_id, offer_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE slider_item_type (id INT AUTO_INCREMENT NOT NULL, type_name VARCHAR(191) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE tag (id INT AUTO_INCREMENT NOT NULL, tag_group_id INT DEFAULT NULL, tag_name VARCHAR(100) NOT NULL, INDEX IDX_389B783C865A29C (tag_group_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE tag_group (id INT AUTO_INCREMENT NOT NULL, group_name VARCHAR(100) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('ALTER TABLE bopartner_profile_game_quiz_mapping ADD CONSTRAINT FK_991ED16731CCFFD FOREIGN KEY (bopartner_profile_id) REFERENCES bopartner_profile (id)');
$this->addSql('ALTER TABLE bopartner_profile_game_quiz_mapping ADD CONSTRAINT FK_991ED1610FEAE5A FOREIGN KEY (game_quiz_id) REFERENCES game_quiz (id)');
$this->addSql('ALTER TABLE bopartner_profile_offer_mapping ADD CONSTRAINT FK_8DE7C27D731CCFFD FOREIGN KEY (bopartner_profile_id) REFERENCES bopartner_profile (id)');
$this->addSql('ALTER TABLE bopartner_profile_offer_mapping ADD CONSTRAINT FK_8DE7C27D53C674EE FOREIGN KEY (offer_id) REFERENCES offer (id)');
$this->addSql('ALTER TABLE color ADD CONSTRAINT FK_665648E922D14205 FOREIGN KEY (color_group_id) REFERENCES color_group (id)');
$this->addSql('ALTER TABLE company_profile_game_quiz_mapping ADD CONSTRAINT FK_D243CFE57174FB2E FOREIGN KEY (company_profile_id) REFERENCES company_profile (id)');
$this->addSql('ALTER TABLE company_profile_game_quiz_mapping ADD CONSTRAINT FK_D243CFE510FEAE5A FOREIGN KEY (game_quiz_id) REFERENCES game_quiz (id)');
$this->addSql('ALTER TABLE company_profile_interest_field_mapping ADD CONSTRAINT FK_986447977174FB2E FOREIGN KEY (company_profile_id) REFERENCES company_profile (id)');
$this->addSql('ALTER TABLE company_profile_interest_field_mapping ADD CONSTRAINT FK_9864479738E49270 FOREIGN KEY (interest_field_id) REFERENCES interest_field (id)');
$this->addSql('ALTER TABLE company_profile_offer_mapping ADD CONSTRAINT FK_DFDC4A447174FB2E FOREIGN KEY (company_profile_id) REFERENCES company_profile (id)');
$this->addSql('ALTER TABLE company_profile_offer_mapping ADD CONSTRAINT FK_DFDC4A4453C674EE FOREIGN KEY (offer_id) REFERENCES offer (id)');
$this->addSql('ALTER TABLE icon ADD CONSTRAINT FK_659429DB42B0E3D4 FOREIGN KEY (icon_category_id) REFERENCES icon_category (id)');
$this->addSql('ALTER TABLE job_interest_field_mapping ADD CONSTRAINT FK_5E74C569BE04EA9 FOREIGN KEY (job_id) REFERENCES job (id)');
$this->addSql('ALTER TABLE job_interest_field_mapping ADD CONSTRAINT FK_5E74C56938E49270 FOREIGN KEY (interest_field_id) REFERENCES interest_field (id)');
$this->addSql('ALTER TABLE job_expert_term_mapping ADD CONSTRAINT FK_F604BD1FBE04EA9 FOREIGN KEY (job_id) REFERENCES job (id)');
$this->addSql('ALTER TABLE job_expert_term_mapping ADD CONSTRAINT FK_F604BD1FEE3710B5 FOREIGN KEY (job_expert_term_id) REFERENCES job_expert_term (id)');
$this->addSql('ALTER TABLE job_daily_routine_job_mapping ADD CONSTRAINT FK_8B71BD6D27F8922 FOREIGN KEY (job_daily_routine_id) REFERENCES job_daily_routine (id)');
$this->addSql('ALTER TABLE job_daily_routine_job_mapping ADD CONSTRAINT FK_8B71BD6BE04EA9 FOREIGN KEY (job_id) REFERENCES job (id)');
$this->addSql('ALTER TABLE job_daily_routine_tag_mapping ADD CONSTRAINT FK_A06981E7D27F8922 FOREIGN KEY (job_daily_routine_id) REFERENCES job_daily_routine (id)');
$this->addSql('ALTER TABLE job_daily_routine_tag_mapping ADD CONSTRAINT FK_A06981E7BAD26311 FOREIGN KEY (tag_id) REFERENCES tag (id)');
$this->addSql('ALTER TABLE job_redirect ADD CONSTRAINT FK_A44B3B505FF1042D FOREIGN KEY (job_src_id) REFERENCES job (id)');
$this->addSql('ALTER TABLE job_redirect ADD CONSTRAINT FK_A44B3B50E36C2F0C FOREIGN KEY (job_dest_id) REFERENCES job (id)');
$this->addSql('ALTER TABLE job_redirect ADD CONSTRAINT FK_A44B3B50AE7EAC79 FOREIGN KEY (job_redirect_type_id) REFERENCES job_redirect_type (id)');
$this->addSql('ALTER TABLE job_salary ADD CONSTRAINT FK_C41796F0BE04EA9 FOREIGN KEY (job_id) REFERENCES job (id)');
$this->addSql('ALTER TABLE job_salary_entry ADD CONSTRAINT FK_B1A5EBFF774D1E7F FOREIGN KEY (job_salary_id) REFERENCES job_salary (id)');
$this->addSql('ALTER TABLE job_salary_entry ADD CONSTRAINT FK_B1A5EBFFC031469A FOREIGN KEY (job_salary_type_id) REFERENCES job_salary_type (id)');
$this->addSql('ALTER TABLE offer_profile_type_mapping ADD CONSTRAINT FK_123AF5B053C674EE FOREIGN KEY (offer_id) REFERENCES offer (id)');
$this->addSql('ALTER TABLE offer_profile_type_mapping ADD CONSTRAINT FK_123AF5B016F2520F FOREIGN KEY (profile_type_id) REFERENCES profile_type (id)');
$this->addSql('ALTER TABLE profile_link_entry ADD CONSTRAINT FK_43F1F6F339B4393C FOREIGN KEY (profile_links_id) REFERENCES profile_link (id)');
$this->addSql('ALTER TABLE profile_link_entry ADD CONSTRAINT FK_43F1F6F3F82971B FOREIGN KEY (profile_link_type_id) REFERENCES profile_link_type (id)');
$this->addSql('ALTER TABLE school_interest_field_mapping ADD CONSTRAINT FK_5332ECDDC32A47EE FOREIGN KEY (school_id) REFERENCES school (id)');
$this->addSql('ALTER TABLE school_interest_field_mapping ADD CONSTRAINT FK_5332ECDD38E49270 FOREIGN KEY (interest_field_id) REFERENCES interest_field (id)');
$this->addSql('ALTER TABLE school_profile_game_quiz_mapping ADD CONSTRAINT FK_AA887732795B924A FOREIGN KEY (school_profile_id) REFERENCES school_profile (id)');
$this->addSql('ALTER TABLE school_profile_game_quiz_mapping ADD CONSTRAINT FK_AA88773210FEAE5A FOREIGN KEY (game_quiz_id) REFERENCES game_quiz (id)');
$this->addSql('ALTER TABLE school_profile_offer_mapping ADD CONSTRAINT FK_9C8ED683795B924A FOREIGN KEY (school_profile_id) REFERENCES school_profile (id)');
$this->addSql('ALTER TABLE school_profile_offer_mapping ADD CONSTRAINT FK_9C8ED68353C674EE FOREIGN KEY (offer_id) REFERENCES offer (id)');
$this->addSql('ALTER TABLE tag ADD CONSTRAINT FK_389B783C865A29C FOREIGN KEY (tag_group_id) REFERENCES tag_group (id)');
$this->addSql('ALTER TABLE job_ams DROP FOREIGN KEY FK_6BDEDEF8BE04EA9');
$this->addSql('DROP TABLE bookmark_type');
$this->addSql('DROP TABLE job_ams');
$this->addSql('ALTER TABLE bookmark DROP FOREIGN KEY FK_DA62921DA76ED395');
$this->addSql('DROP INDEX IDX_DA62921DA76ED395 ON bookmark');
$this->addSql('DROP INDEX IDX_DA62921DA894E7A8 ON bookmark');
$this->addSql('ALTER TABLE bookmark ADD access_token VARCHAR(10) NOT NULL, ADD stored_value MEDIUMTEXT DEFAULT NULL, DROP user_id, DROP bookmark_type_id, DROP target_id');
$this->addSql('ALTER TABLE bopartner_profile ADD profile_link_id INT DEFAULT NULL');
$this->addSql('ALTER TABLE bopartner_profile ADD CONSTRAINT FK_48F3163C7E1ADCED FOREIGN KEY (profile_link_id) REFERENCES profile_link (id)');
$this->addSql('CREATE INDEX IDX_48F3163C7E1ADCED ON bopartner_profile (profile_link_id)');
$this->addSql('ALTER TABLE company_profile ADD profile_link_id INT DEFAULT NULL');
$this->addSql('ALTER TABLE company_profile ADD CONSTRAINT FK_A105B0D87E1ADCED FOREIGN KEY (profile_link_id) REFERENCES profile_link (id)');
$this->addSql('CREATE INDEX IDX_A105B0D87E1ADCED ON company_profile (profile_link_id)');
$this->addSql('ALTER TABLE game_quiz_question ADD game_quiz_id INT DEFAULT NULL');
$this->addSql('ALTER TABLE game_quiz_question ADD CONSTRAINT FK_CAD72C6010FEAE5A FOREIGN KEY (game_quiz_id) REFERENCES game_quiz (id)');
$this->addSql('CREATE INDEX IDX_CAD72C6010FEAE5A ON game_quiz_question (game_quiz_id)');
$this->addSql('ALTER TABLE info_section_category CHANGE heading heading VARCHAR(2048) DEFAULT NULL, CHANGE description description MEDIUMTEXT DEFAULT NULL, CHANGE url_text url_text VARCHAR(255) DEFAULT NULL, CHANGE link link VARCHAR(2048) DEFAULT NULL');
$this->addSql('ALTER TABLE info_section_entry CHANGE heading heading VARCHAR(2048) DEFAULT NULL, CHANGE description description MEDIUMTEXT DEFAULT NULL, CHANGE url url VARCHAR(2048) NOT NULL');
$this->addSql('ALTER TABLE info_section_subcategory CHANGE heading heading VARCHAR(2048) DEFAULT NULL, CHANGE anchor anchor VARCHAR(2048) DEFAULT NULL');
$this->addSql('ALTER TABLE job ADD bic_moeglichkeiten MEDIUMTEXT DEFAULT NULL');
$this->addSql('ALTER TABLE job_daily_routine DROP FOREIGN KEY FK_3FC957EEBE04EA9');
$this->addSql('DROP INDEX IDX_3FC957EEBE04EA9 ON job_daily_routine');
$this->addSql('ALTER TABLE job_daily_routine ADD gradient_id INT DEFAULT NULL, ADD icon_id INT DEFAULT NULL, ADD icon_color_id INT DEFAULT NULL, ADD routine_title VARCHAR(255) DEFAULT NULL, ADD video_url VARCHAR(2048) DEFAULT NULL, ADD color_id INT DEFAULT NULL');
$this->addSql('ALTER TABLE job_daily_routine ADD CONSTRAINT FK_3FC957EE7ADA1FB5 FOREIGN KEY (color_id) REFERENCES color (id)');
$this->addSql('ALTER TABLE job_daily_routine ADD CONSTRAINT FK_3FC957EEE225294E FOREIGN KEY (gradient_id) REFERENCES key_value (id)');
$this->addSql('ALTER TABLE job_daily_routine ADD CONSTRAINT FK_3FC957EE54B9D732 FOREIGN KEY (icon_id) REFERENCES icon (id)');
$this->addSql('ALTER TABLE job_daily_routine ADD CONSTRAINT FK_3FC957EE67CF308A FOREIGN KEY (icon_color_id) REFERENCES color (id)');
$this->addSql('CREATE INDEX IDX_3FC957EE7ADA1FB5 ON job_daily_routine (color_id)');
$this->addSql('CREATE INDEX IDX_3FC957EEE225294E ON job_daily_routine (gradient_id)');
$this->addSql('CREATE INDEX IDX_3FC957EE54B9D732 ON job_daily_routine (icon_id)');
$this->addSql('CREATE INDEX IDX_3FC957EE67CF308A ON job_daily_routine (icon_color_id)');
$this->addSql('ALTER TABLE job_daily_routine_entry ADD highlight_position_id INT DEFAULT NULL');
$this->addSql('ALTER TABLE job_daily_routine_entry ADD CONSTRAINT FK_23161BE4E792E533 FOREIGN KEY (highlight_position_id) REFERENCES key_value (id)');
$this->addSql('CREATE INDEX IDX_23161BE4E792E533 ON job_daily_routine_entry (highlight_position_id)');
$this->addSql('ALTER TABLE media__media ADD copyright VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE school_profile ADD profile_link_id INT DEFAULT NULL');
$this->addSql('ALTER TABLE school_profile ADD CONSTRAINT FK_137898977E1ADCED FOREIGN KEY (profile_link_id) REFERENCES profile_link (id)');
$this->addSql('CREATE INDEX IDX_137898977E1ADCED ON school_profile (profile_link_id)');
$this->addSql('ALTER TABLE slider_item ADD slider_item_type_id INT DEFAULT NULL');
$this->addSql('ALTER TABLE slider_item ADD CONSTRAINT FK_788595CEE4074F15 FOREIGN KEY (slider_item_type_id) REFERENCES slider_item_type (id)');
$this->addSql('CREATE INDEX IDX_788595CEE4074F15 ON slider_item (slider_item_type_id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE job_daily_routine DROP FOREIGN KEY FK_3FC957EE7ADA1FB5');
$this->addSql('ALTER TABLE job_daily_routine DROP FOREIGN KEY FK_3FC957EE67CF308A');
$this->addSql('ALTER TABLE game_quiz_question DROP FOREIGN KEY FK_CAD72C6010FEAE5A');
$this->addSql('ALTER TABLE job_daily_routine DROP FOREIGN KEY FK_3FC957EE54B9D732');
$this->addSql('ALTER TABLE bopartner_profile DROP FOREIGN KEY FK_48F3163C7E1ADCED');
$this->addSql('ALTER TABLE company_profile DROP FOREIGN KEY FK_A105B0D87E1ADCED');
$this->addSql('ALTER TABLE school_profile DROP FOREIGN KEY FK_137898977E1ADCED');
$this->addSql('ALTER TABLE slider_item DROP FOREIGN KEY FK_788595CEE4074F15');
$this->addSql('CREATE TABLE bookmark_type (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(191) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
$this->addSql('CREATE TABLE job_ams (id INT AUTO_INCREMENT NOT NULL, job_id INT DEFAULT NULL, ams_id VARCHAR(191) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, url_ext VARCHAR(191) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, title VARCHAR(191) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, salary_from VARCHAR(10) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, salary_to VARCHAR(10) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, url VARCHAR(2048) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, UNIQUE INDEX UNIQ_6BDEDEF8BE04EA9 (job_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
$this->addSql('ALTER TABLE job_ams ADD CONSTRAINT FK_6BDEDEF8BE04EA9 FOREIGN KEY (job_id) REFERENCES job (id)');
$this->addSql('ALTER TABLE bopartner_profile_game_quiz_mapping DROP FOREIGN KEY FK_991ED16731CCFFD');
$this->addSql('ALTER TABLE bopartner_profile_game_quiz_mapping DROP FOREIGN KEY FK_991ED1610FEAE5A');
$this->addSql('ALTER TABLE bopartner_profile_offer_mapping DROP FOREIGN KEY FK_8DE7C27D731CCFFD');
$this->addSql('ALTER TABLE bopartner_profile_offer_mapping DROP FOREIGN KEY FK_8DE7C27D53C674EE');
$this->addSql('ALTER TABLE color DROP FOREIGN KEY FK_665648E922D14205');
$this->addSql('ALTER TABLE company_profile_game_quiz_mapping DROP FOREIGN KEY FK_D243CFE57174FB2E');
$this->addSql('ALTER TABLE company_profile_game_quiz_mapping DROP FOREIGN KEY FK_D243CFE510FEAE5A');
$this->addSql('ALTER TABLE company_profile_interest_field_mapping DROP FOREIGN KEY FK_986447977174FB2E');
$this->addSql('ALTER TABLE company_profile_interest_field_mapping DROP FOREIGN KEY FK_9864479738E49270');
$this->addSql('ALTER TABLE company_profile_offer_mapping DROP FOREIGN KEY FK_DFDC4A447174FB2E');
$this->addSql('ALTER TABLE company_profile_offer_mapping DROP FOREIGN KEY FK_DFDC4A4453C674EE');
$this->addSql('ALTER TABLE icon DROP FOREIGN KEY FK_659429DB42B0E3D4');
$this->addSql('ALTER TABLE job_interest_field_mapping DROP FOREIGN KEY FK_5E74C569BE04EA9');
$this->addSql('ALTER TABLE job_interest_field_mapping DROP FOREIGN KEY FK_5E74C56938E49270');
$this->addSql('ALTER TABLE job_expert_term_mapping DROP FOREIGN KEY FK_F604BD1FBE04EA9');
$this->addSql('ALTER TABLE job_expert_term_mapping DROP FOREIGN KEY FK_F604BD1FEE3710B5');
$this->addSql('ALTER TABLE job_daily_routine_job_mapping DROP FOREIGN KEY FK_8B71BD6D27F8922');
$this->addSql('ALTER TABLE job_daily_routine_job_mapping DROP FOREIGN KEY FK_8B71BD6BE04EA9');
$this->addSql('ALTER TABLE job_daily_routine_tag_mapping DROP FOREIGN KEY FK_A06981E7D27F8922');
$this->addSql('ALTER TABLE job_daily_routine_tag_mapping DROP FOREIGN KEY FK_A06981E7BAD26311');
$this->addSql('ALTER TABLE job_redirect DROP FOREIGN KEY FK_A44B3B505FF1042D');
$this->addSql('ALTER TABLE job_redirect DROP FOREIGN KEY FK_A44B3B50E36C2F0C');
$this->addSql('ALTER TABLE job_redirect DROP FOREIGN KEY FK_A44B3B50AE7EAC79');
$this->addSql('ALTER TABLE job_salary DROP FOREIGN KEY FK_C41796F0BE04EA9');
$this->addSql('ALTER TABLE job_salary_entry DROP FOREIGN KEY FK_B1A5EBFF774D1E7F');
$this->addSql('ALTER TABLE job_salary_entry DROP FOREIGN KEY FK_B1A5EBFFC031469A');
$this->addSql('ALTER TABLE offer_profile_type_mapping DROP FOREIGN KEY FK_123AF5B053C674EE');
$this->addSql('ALTER TABLE offer_profile_type_mapping DROP FOREIGN KEY FK_123AF5B016F2520F');
$this->addSql('ALTER TABLE profile_link_entry DROP FOREIGN KEY FK_43F1F6F339B4393C');
$this->addSql('ALTER TABLE profile_link_entry DROP FOREIGN KEY FK_43F1F6F3F82971B');
$this->addSql('ALTER TABLE school_interest_field_mapping DROP FOREIGN KEY FK_5332ECDDC32A47EE');
$this->addSql('ALTER TABLE school_interest_field_mapping DROP FOREIGN KEY FK_5332ECDD38E49270');
$this->addSql('ALTER TABLE school_profile_game_quiz_mapping DROP FOREIGN KEY FK_AA887732795B924A');
$this->addSql('ALTER TABLE school_profile_game_quiz_mapping DROP FOREIGN KEY FK_AA88773210FEAE5A');
$this->addSql('ALTER TABLE school_profile_offer_mapping DROP FOREIGN KEY FK_9C8ED683795B924A');
$this->addSql('ALTER TABLE school_profile_offer_mapping DROP FOREIGN KEY FK_9C8ED68353C674EE');
$this->addSql('ALTER TABLE tag DROP FOREIGN KEY FK_389B783C865A29C');
$this->addSql('DROP TABLE bopartner_profile_game_quiz_mapping');
$this->addSql('DROP TABLE bopartner_profile_offer_mapping');
$this->addSql('DROP TABLE color');
$this->addSql('DROP TABLE color_group');
$this->addSql('DROP TABLE company_profile_game_quiz_mapping');
$this->addSql('DROP TABLE company_profile_interest_field_mapping');
$this->addSql('DROP TABLE company_profile_offer_mapping');
$this->addSql('DROP TABLE game_quiz');
$this->addSql('DROP TABLE icon');
$this->addSql('DROP TABLE icon_category');
$this->addSql('DROP TABLE interest_field');
$this->addSql('DROP TABLE job_interest_field_mapping');
$this->addSql('DROP TABLE job_expert_term_mapping');
$this->addSql('DROP TABLE job_daily_routine_job_mapping');
$this->addSql('DROP TABLE job_daily_routine_tag_mapping');
$this->addSql('DROP TABLE job_expert_term');
$this->addSql('DROP TABLE job_redirect');
$this->addSql('DROP TABLE job_redirect_type');
$this->addSql('DROP TABLE job_salary');
$this->addSql('DROP TABLE job_salary_entry');
$this->addSql('DROP TABLE job_salary_type');
$this->addSql('DROP TABLE offer');
$this->addSql('DROP TABLE offer_profile_type_mapping');
$this->addSql('DROP TABLE profile_link');
$this->addSql('DROP TABLE profile_link_entry');
$this->addSql('DROP TABLE profile_link_type');
$this->addSql('DROP TABLE school_interest_field_mapping');
$this->addSql('DROP TABLE school_profile_game_quiz_mapping');
$this->addSql('DROP TABLE school_profile_offer_mapping');
$this->addSql('DROP TABLE slider_item_type');
$this->addSql('DROP TABLE tag');
$this->addSql('DROP TABLE tag_group');
$this->addSql('DROP INDEX IDX_137898977E1ADCED ON school_profile');
$this->addSql('ALTER TABLE school_profile DROP profile_link_id');
$this->addSql('ALTER TABLE job_daily_routine_entry DROP FOREIGN KEY FK_23161BE4E792E533');
$this->addSql('DROP INDEX IDX_23161BE4E792E533 ON job_daily_routine_entry');
$this->addSql('ALTER TABLE job_daily_routine_entry DROP highlight_position_id');
$this->addSql('DROP INDEX IDX_788595CEE4074F15 ON slider_item');
$this->addSql('ALTER TABLE slider_item DROP slider_item_type_id');
$this->addSql('ALTER TABLE media__media DROP copyright');
$this->addSql('DROP INDEX IDX_48F3163C7E1ADCED ON bopartner_profile');
$this->addSql('ALTER TABLE bopartner_profile DROP profile_link_id');
$this->addSql('ALTER TABLE bookmark ADD user_id INT DEFAULT NULL, ADD bookmark_type_id INT DEFAULT NULL, ADD target_id INT NOT NULL, DROP access_token, DROP stored_value');
$this->addSql('ALTER TABLE bookmark ADD CONSTRAINT FK_DA62921DA894E7A8 FOREIGN KEY (bookmark_type_id) REFERENCES bookmark_type (id)');
$this->addSql('ALTER TABLE bookmark ADD CONSTRAINT FK_DA62921DA76ED395 FOREIGN KEY (user_id) REFERENCES user (id)');
$this->addSql('CREATE INDEX IDX_DA62921DA76ED395 ON bookmark (user_id)');
$this->addSql('CREATE INDEX IDX_DA62921DA894E7A8 ON bookmark (bookmark_type_id)');
$this->addSql('ALTER TABLE job DROP bic_moeglichkeiten');
$this->addSql('ALTER TABLE info_section_category CHANGE heading heading VARCHAR(191) NOT NULL, CHANGE description description VARCHAR(191) NOT NULL, CHANGE url_text url_text VARCHAR(30) DEFAULT NULL, CHANGE link link VARCHAR(191) DEFAULT NULL');
$this->addSql('ALTER TABLE job_daily_routine DROP FOREIGN KEY FK_3FC957EEE225294E');
$this->addSql('DROP INDEX IDX_3FC957EE7ADA1FB5 ON job_daily_routine');
$this->addSql('DROP INDEX IDX_3FC957EEE225294E ON job_daily_routine');
$this->addSql('DROP INDEX IDX_3FC957EE54B9D732 ON job_daily_routine');
$this->addSql('DROP INDEX IDX_3FC957EE67CF308A ON job_daily_routine');
$this->addSql('ALTER TABLE job_daily_routine ADD job_id INT DEFAULT NULL, DROP color_id, DROP gradient_id, DROP icon_id, DROP icon_color_id, DROP routine_title, DROP video_url');
$this->addSql('ALTER TABLE job_daily_routine ADD CONSTRAINT FK_3FC957EEBE04EA9 FOREIGN KEY (job_id) REFERENCES job (id)');
$this->addSql('CREATE INDEX IDX_3FC957EEBE04EA9 ON job_daily_routine (job_id)');
$this->addSql('DROP INDEX IDX_A105B0D87E1ADCED ON company_profile');
$this->addSql('ALTER TABLE company_profile DROP profile_link_id');
$this->addSql('DROP INDEX IDX_CAD72C6010FEAE5A ON game_quiz_question');
$this->addSql('ALTER TABLE game_quiz_question DROP game_quiz_id');
$this->addSql('ALTER TABLE info_section_subcategory CHANGE heading heading VARCHAR(191) NOT NULL, CHANGE anchor anchor VARCHAR(191) DEFAULT NULL');
$this->addSql('ALTER TABLE info_section_entry CHANGE heading heading VARCHAR(191) NOT NULL, CHANGE description description VARCHAR(191) NOT NULL, CHANGE url url VARCHAR(191) NOT NULL');
}
}