<?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 Version20240319130049 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 channel_materials (id INT AUTO_INCREMENT NOT NULL, channel_id VARCHAR(36) DEFAULT NULL, name VARCHAR(255) NOT NULL, INDEX IDX_346ABD8A72F5A1AA (channel_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE channel_rooms_materials (material_id INT NOT NULL, room_id VARCHAR(36) NOT NULL, INDEX IDX_D755A347E308AC6F (material_id), INDEX IDX_D755A34754177093 (room_id), PRIMARY KEY(material_id, room_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE channel_places (id INT AUTO_INCREMENT NOT NULL, channel_id VARCHAR(36) NOT NULL, label VARCHAR(255) NOT NULL, INDEX IDX_CC562B72F5A1AA (channel_id), FULLTEXT INDEX IDX_CC562BEA750E8 (label), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE channel_rooms (id VARCHAR(36) NOT NULL, place_id INT NOT NULL, name VARCHAR(255) NOT NULL, capacity INT NOT NULL, INDEX IDX_CB80120EDA6A219 (place_id), FULLTEXT INDEX IDX_CB80120E5E237E06 (name), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE channel_sessions (id INT AUTO_INCREMENT NOT NULL, training_id VARCHAR(36) DEFAULT NULL, group_id VARCHAR(36) NOT NULL, start_at DATETIME NOT NULL, end_at DATETIME DEFAULT NULL, description TEXT DEFAULT NULL, has_signatures_deactivated TINYINT(1) DEFAULT 0 NOT NULL, count_hours_in_center INT DEFAULT 0 NOT NULL, count_hours_in_company INT DEFAULT 0 NOT NULL, count_hours_visio INT DEFAULT 0 NOT NULL, count_hours_elearning INT DEFAULT 0 NOT NULL, is_notification_enabled TINYINT(1) NOT NULL, INDEX IDX_EDD0EEBABEFD98D1 (training_id), UNIQUE INDEX UNIQ_EDD0EEBAFE54D947 (group_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE channel_session_coordinators (session_id INT NOT NULL, user_id VARCHAR(36) NOT NULL, INDEX IDX_E04A9B9C613FECDF (session_id), INDEX IDX_E04A9B9CA76ED395 (user_id), PRIMARY KEY(session_id, user_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE channel_trainings (id VARCHAR(36) NOT NULL, owner_channel_id VARCHAR(36) NOT NULL, name VARCHAR(255) NOT NULL, description LONGTEXT DEFAULT NULL, created_at DATETIME DEFAULT NULL, updated_at DATETIME DEFAULT NULL, INDEX IDX_C9A1E80F209F38EF (owner_channel_id), FULLTEXT INDEX IDX_C9A1E80F5E237E06 (name), FULLTEXT INDEX IDX_C9A1E80F6DE44026 (description), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE channel_user_data (id VARCHAR(36) NOT NULL, user_id VARCHAR(36) NOT NULL, channel_id VARCHAR(36) NOT NULL, role INT DEFAULT 0 NOT NULL, birth_name VARCHAR(255) DEFAULT NULL, birth_at DATETIME DEFAULT NULL COMMENT \'(DC2Type:datetime_immutable)\', birth_postal_code VARCHAR(15) DEFAULT NULL, birth_city VARCHAR(255) DEFAULT NULL, birth_country VARCHAR(2) DEFAULT NULL, nationality VARCHAR(255) DEFAULT NULL, rqth TINYINT(1) DEFAULT NULL, rqth_details VARCHAR(255) DEFAULT NULL, last_work_qualification_details VARCHAR(255) DEFAULT NULL, last_work_qualification INT DEFAULT NULL, last_work_status INT DEFAULT NULL, scholar_level INT DEFAULT NULL, scholar_diploma INT DEFAULT NULL, scholar_diploma_other VARCHAR(255) DEFAULT NULL, INDEX IDX_780F1495A76ED395 (user_id), INDEX IDX_780F149572F5A1AA (channel_id), UNIQUE INDEX UNIQ_780F1495A76ED39572F5A1AA (user_id, channel_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE channel_user_data_cursus (id INT AUTO_INCREMENT NOT NULL, channel_user_data_id VARCHAR(36) NOT NULL, training_id VARCHAR(36) DEFAULT NULL, exam_place_id INT DEFAULT NULL, start_at DATETIME NOT NULL, end_at DATETIME NOT NULL, training_progression INT DEFAULT NULL, training_progression_updated_at DATETIME DEFAULT NULL, physical_progression INT DEFAULT NULL, physical_progression_updated_at DATETIME DEFAULT NULL, total_duration INT NOT NULL, physical_duration INT NOT NULL, distance_sync_duration INT NOT NULL, distance_async_duration INT NOT NULL, cursus_modality INT DEFAULT NULL, internship_status INT DEFAULT NULL, stopped_status INT DEFAULT NULL, stopped_at DATETIME DEFAULT NULL, stopped_infos LONGTEXT DEFAULT NULL, exam_session VARCHAR(255) DEFAULT NULL, exam_ceres VARCHAR(255) DEFAULT NULL, exam_status INT DEFAULT NULL, exam_ccp VARCHAR(255) DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME DEFAULT NULL, type VARCHAR(255) NOT NULL, INDEX IDX_F20A41F423887597 (channel_user_data_id), INDEX IDX_F20A41F4BEFD98D1 (training_id), INDEX IDX_F20A41F44EC2ED2A (exam_place_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE channel_user_data_cursus_abstract_activity (id INT AUTO_INCREMENT NOT NULL, cursus_id INT NOT NULL, created_by_id VARCHAR(36) DEFAULT NULL, tags JSON NOT NULL COMMENT \'(DC2Type:json)\', created_at DATETIME NOT NULL, updated_at DATETIME DEFAULT NULL, type VARCHAR(255) NOT NULL, INDEX IDX_32D9B14A40AEF4B9 (cursus_id), INDEX IDX_32D9B14AB03A8386 (created_by_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE channel_user_data_cursus_company (id INT AUTO_INCREMENT NOT NULL, cursus_id INT NOT NULL, name VARCHAR(255) NOT NULL, siret VARCHAR(14) DEFAULT NULL, representative_last_name VARCHAR(255) DEFAULT NULL, representative_first_name VARCHAR(255) DEFAULT NULL, email VARCHAR(255) DEFAULT NULL, phone VARCHAR(255) DEFAULT NULL, address LONGTEXT DEFAULT NULL, start_at DATE NOT NULL, end_at DATE NOT NULL, duration INT DEFAULT NULL, internship_address LONGTEXT NOT NULL, INDEX IDX_31C5AC1440AEF4B9 (cursus_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE channel_user_data_cursus_exam (id INT AUTO_INCREMENT NOT NULL, cursus_id INT NOT NULL, exam_order INT NOT NULL, type INT NOT NULL, happen_at DATE NOT NULL, start_at TIME NOT NULL, end_at TIME NOT NULL, INDEX IDX_D09F19F140AEF4B9 (cursus_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE channel_user_data_cursus_founder (id INT AUTO_INCREMENT NOT NULL, cursus_id INT NOT NULL, founder_order INT NOT NULL, founder_types LONGTEXT NOT NULL COMMENT \'(DC2Type:simple_array)\', founder_other_type VARCHAR(255) DEFAULT NULL, case_number VARCHAR(255) NOT NULL, identifier VARCHAR(255) DEFAULT NULL, amount INT NOT NULL, amount_hours INT NOT NULL, INDEX IDX_F146BDF440AEF4B9 (cursus_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE channel_user_data_cursus_founder_adviser (id INT AUTO_INCREMENT NOT NULL, founder_id INT NOT NULL, first_name VARCHAR(255) DEFAULT NULL, last_name VARCHAR(255) DEFAULT NULL, email VARCHAR(255) DEFAULT NULL, phone VARCHAR(255) DEFAULT NULL, UNIQUE INDEX UNIQ_1DC644F19113B3C (founder_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE channel_user_data_cursus_founder_tutor (id INT AUTO_INCREMENT NOT NULL, company_id INT NOT NULL, first_name VARCHAR(255) DEFAULT NULL, last_name VARCHAR(255) DEFAULT NULL, email VARCHAR(255) DEFAULT NULL, phone VARCHAR(255) DEFAULT NULL, UNIQUE INDEX UNIQ_7F122378979B1AD6 (company_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE channel_user_data_cursus_meeting_activity (id INT NOT NULL, contact_type INT DEFAULT NULL, duration INT DEFAULT NULL, modality INT DEFAULT NULL, objectives LONGTEXT DEFAULT NULL COMMENT \'(DC2Type:simple_array)\', content TEXT DEFAULT NULL, plan_content TEXT DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE channel_user_data_cursus_message_activity (id INT NOT NULL, parent_id INT DEFAULT NULL, content TEXT NOT NULL, INDEX IDX_CEC818DC727ACA70 (parent_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE channel_user_data_cursus_session (id INT NOT NULL, session_id INT NOT NULL, INDEX IDX_AE3E708F613FECDF (session_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE channel_user_data_cursus_track_data_activity (id INT NOT NULL, fields JSON NOT NULL COMMENT \'(DC2Type:json)\', track_data_type INT NOT NULL, field_name VARCHAR(255) NOT NULL, title_parts LONGTEXT NOT NULL COMMENT \'(DC2Type:simple_array)\', PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE channel_user_data_cursus_training (id INT NOT NULL, e_learning TINYINT(1) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE custom_view_cursus (id INT AUTO_INCREMENT NOT NULL, user_id VARCHAR(36) NOT NULL, channel_id VARCHAR(36) NOT NULL, name VARCHAR(255) NOT NULL, columns JSON DEFAULT NULL COMMENT \'(DC2Type:json)\', filters JSON NOT NULL COMMENT \'(DC2Type:json)\', active TINYINT(1) NOT NULL, INDEX IDX_B0B57770A76ED395 (user_id), INDEX IDX_B0B5777072F5A1AA (channel_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE sync_additional_data (id INT AUTO_INCREMENT NOT NULL, app_id INT NOT NULL, data JSON NOT NULL COMMENT \'(DC2Type:json)\', model VARCHAR(255) NOT NULL, route_name VARCHAR(255) NOT NULL, route_parameters JSON NOT NULL COMMENT \'(DC2Type:json)\', action VARCHAR(255) NOT NULL, status INT NOT NULL, INDEX IDX_5ADBED37987212D (app_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('ALTER TABLE channel_materials ADD CONSTRAINT FK_346ABD8A72F5A1AA FOREIGN KEY (channel_id) REFERENCES channel_channels (id)');
$this->addSql('ALTER TABLE channel_rooms_materials ADD CONSTRAINT FK_D755A347E308AC6F FOREIGN KEY (material_id) REFERENCES channel_materials (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE channel_rooms_materials ADD CONSTRAINT FK_D755A34754177093 FOREIGN KEY (room_id) REFERENCES channel_rooms (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE channel_places ADD CONSTRAINT FK_CC562B72F5A1AA FOREIGN KEY (channel_id) REFERENCES channel_channels (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE channel_rooms ADD CONSTRAINT FK_CB80120EDA6A219 FOREIGN KEY (place_id) REFERENCES channel_places (id)');
$this->addSql('ALTER TABLE channel_sessions ADD CONSTRAINT FK_EDD0EEBABEFD98D1 FOREIGN KEY (training_id) REFERENCES channel_trainings (id)');
$this->addSql('ALTER TABLE channel_sessions ADD CONSTRAINT FK_EDD0EEBAFE54D947 FOREIGN KEY (group_id) REFERENCES channel_groups (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE channel_session_coordinators ADD CONSTRAINT FK_E04A9B9C613FECDF FOREIGN KEY (session_id) REFERENCES channel_sessions (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE channel_session_coordinators ADD CONSTRAINT FK_E04A9B9CA76ED395 FOREIGN KEY (user_id) REFERENCES account_users (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE channel_trainings ADD CONSTRAINT FK_C9A1E80F209F38EF FOREIGN KEY (owner_channel_id) REFERENCES channel_channels (id)');
$this->addSql('ALTER TABLE channel_user_data ADD CONSTRAINT FK_780F1495A76ED395 FOREIGN KEY (user_id) REFERENCES account_users (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE channel_user_data ADD CONSTRAINT FK_780F149572F5A1AA FOREIGN KEY (channel_id) REFERENCES channel_channels (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE channel_user_data_cursus ADD CONSTRAINT FK_F20A41F423887597 FOREIGN KEY (channel_user_data_id) REFERENCES channel_user_data (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE channel_user_data_cursus ADD CONSTRAINT FK_F20A41F4BEFD98D1 FOREIGN KEY (training_id) REFERENCES channel_trainings (id) ON DELETE SET NULL');
$this->addSql('ALTER TABLE channel_user_data_cursus ADD CONSTRAINT FK_F20A41F44EC2ED2A FOREIGN KEY (exam_place_id) REFERENCES channel_places (id) ON DELETE SET NULL');
$this->addSql('ALTER TABLE channel_user_data_cursus_abstract_activity ADD CONSTRAINT FK_32D9B14A40AEF4B9 FOREIGN KEY (cursus_id) REFERENCES channel_user_data_cursus (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE channel_user_data_cursus_abstract_activity ADD CONSTRAINT FK_32D9B14AB03A8386 FOREIGN KEY (created_by_id) REFERENCES account_users (id) ON DELETE SET NULL');
$this->addSql('ALTER TABLE channel_user_data_cursus_company ADD CONSTRAINT FK_31C5AC1440AEF4B9 FOREIGN KEY (cursus_id) REFERENCES channel_user_data_cursus (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE channel_user_data_cursus_exam ADD CONSTRAINT FK_D09F19F140AEF4B9 FOREIGN KEY (cursus_id) REFERENCES channel_user_data_cursus (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE channel_user_data_cursus_founder ADD CONSTRAINT FK_F146BDF440AEF4B9 FOREIGN KEY (cursus_id) REFERENCES channel_user_data_cursus (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE channel_user_data_cursus_founder_adviser ADD CONSTRAINT FK_1DC644F19113B3C FOREIGN KEY (founder_id) REFERENCES channel_user_data_cursus_founder (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE channel_user_data_cursus_founder_tutor ADD CONSTRAINT FK_7F122378979B1AD6 FOREIGN KEY (company_id) REFERENCES channel_user_data_cursus_company (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE channel_user_data_cursus_meeting_activity ADD CONSTRAINT FK_547FF118BF396750 FOREIGN KEY (id) REFERENCES channel_user_data_cursus_abstract_activity (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE channel_user_data_cursus_message_activity ADD CONSTRAINT FK_CEC818DC727ACA70 FOREIGN KEY (parent_id) REFERENCES channel_user_data_cursus_abstract_activity (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE channel_user_data_cursus_message_activity ADD CONSTRAINT FK_CEC818DCBF396750 FOREIGN KEY (id) REFERENCES channel_user_data_cursus_abstract_activity (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE channel_user_data_cursus_session ADD CONSTRAINT FK_AE3E708F613FECDF FOREIGN KEY (session_id) REFERENCES channel_sessions (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE channel_user_data_cursus_session ADD CONSTRAINT FK_AE3E708FBF396750 FOREIGN KEY (id) REFERENCES channel_user_data_cursus (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE channel_user_data_cursus_track_data_activity ADD CONSTRAINT FK_F39AC024BF396750 FOREIGN KEY (id) REFERENCES channel_user_data_cursus_abstract_activity (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE channel_user_data_cursus_training ADD CONSTRAINT FK_29D57856BF396750 FOREIGN KEY (id) REFERENCES channel_user_data_cursus (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE custom_view_cursus ADD CONSTRAINT FK_B0B57770A76ED395 FOREIGN KEY (user_id) REFERENCES account_users (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE custom_view_cursus ADD CONSTRAINT FK_B0B5777072F5A1AA FOREIGN KEY (channel_id) REFERENCES channel_channels (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE sync_additional_data ADD CONSTRAINT FK_5ADBED37987212D FOREIGN KEY (app_id) REFERENCES app (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE account_notifications CHANGE link link VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE account_users ADD last_connected_at DATETIME DEFAULT NULL, CHANGE roles roles JSON NOT NULL COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE channel_channel_permissions CHANGE perms perms JSON NOT NULL COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE channel_groups ADD place_id INT DEFAULT NULL');
$this->addSql('ALTER TABLE channel_groups ADD CONSTRAINT FK_E0E030EDA6A219 FOREIGN KEY (place_id) REFERENCES channel_places (id) ON DELETE SET NULL');
$this->addSql('CREATE INDEX IDX_E0E030EDA6A219 ON channel_groups (place_id)');
$this->addSql('ALTER TABLE channel_orders CHANGE json_data json_data JSON NOT NULL COMMENT \'(DC2Type:json)\'');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE channel_groups DROP FOREIGN KEY FK_E0E030EDA6A219');
$this->addSql('ALTER TABLE channel_materials DROP FOREIGN KEY FK_346ABD8A72F5A1AA');
$this->addSql('ALTER TABLE channel_rooms_materials DROP FOREIGN KEY FK_D755A347E308AC6F');
$this->addSql('ALTER TABLE channel_rooms_materials DROP FOREIGN KEY FK_D755A34754177093');
$this->addSql('ALTER TABLE channel_places DROP FOREIGN KEY FK_CC562B72F5A1AA');
$this->addSql('ALTER TABLE channel_rooms DROP FOREIGN KEY FK_CB80120EDA6A219');
$this->addSql('ALTER TABLE channel_sessions DROP FOREIGN KEY FK_EDD0EEBABEFD98D1');
$this->addSql('ALTER TABLE channel_sessions DROP FOREIGN KEY FK_EDD0EEBAFE54D947');
$this->addSql('ALTER TABLE channel_session_coordinators DROP FOREIGN KEY FK_E04A9B9C613FECDF');
$this->addSql('ALTER TABLE channel_session_coordinators DROP FOREIGN KEY FK_E04A9B9CA76ED395');
$this->addSql('ALTER TABLE channel_trainings DROP FOREIGN KEY FK_C9A1E80F209F38EF');
$this->addSql('ALTER TABLE channel_user_data DROP FOREIGN KEY FK_780F1495A76ED395');
$this->addSql('ALTER TABLE channel_user_data DROP FOREIGN KEY FK_780F149572F5A1AA');
$this->addSql('ALTER TABLE channel_user_data_cursus DROP FOREIGN KEY FK_F20A41F423887597');
$this->addSql('ALTER TABLE channel_user_data_cursus DROP FOREIGN KEY FK_F20A41F4BEFD98D1');
$this->addSql('ALTER TABLE channel_user_data_cursus DROP FOREIGN KEY FK_F20A41F44EC2ED2A');
$this->addSql('ALTER TABLE channel_user_data_cursus_abstract_activity DROP FOREIGN KEY FK_32D9B14A40AEF4B9');
$this->addSql('ALTER TABLE channel_user_data_cursus_abstract_activity DROP FOREIGN KEY FK_32D9B14AB03A8386');
$this->addSql('ALTER TABLE channel_user_data_cursus_company DROP FOREIGN KEY FK_31C5AC1440AEF4B9');
$this->addSql('ALTER TABLE channel_user_data_cursus_exam DROP FOREIGN KEY FK_D09F19F140AEF4B9');
$this->addSql('ALTER TABLE channel_user_data_cursus_founder DROP FOREIGN KEY FK_F146BDF440AEF4B9');
$this->addSql('ALTER TABLE channel_user_data_cursus_founder_adviser DROP FOREIGN KEY FK_1DC644F19113B3C');
$this->addSql('ALTER TABLE channel_user_data_cursus_founder_tutor DROP FOREIGN KEY FK_7F122378979B1AD6');
$this->addSql('ALTER TABLE channel_user_data_cursus_meeting_activity DROP FOREIGN KEY FK_547FF118BF396750');
$this->addSql('ALTER TABLE channel_user_data_cursus_message_activity DROP FOREIGN KEY FK_CEC818DC727ACA70');
$this->addSql('ALTER TABLE channel_user_data_cursus_message_activity DROP FOREIGN KEY FK_CEC818DCBF396750');
$this->addSql('ALTER TABLE channel_user_data_cursus_session DROP FOREIGN KEY FK_AE3E708F613FECDF');
$this->addSql('ALTER TABLE channel_user_data_cursus_session DROP FOREIGN KEY FK_AE3E708FBF396750');
$this->addSql('ALTER TABLE channel_user_data_cursus_track_data_activity DROP FOREIGN KEY FK_F39AC024BF396750');
$this->addSql('ALTER TABLE channel_user_data_cursus_training DROP FOREIGN KEY FK_29D57856BF396750');
$this->addSql('ALTER TABLE custom_view_cursus DROP FOREIGN KEY FK_B0B57770A76ED395');
$this->addSql('ALTER TABLE custom_view_cursus DROP FOREIGN KEY FK_B0B5777072F5A1AA');
$this->addSql('ALTER TABLE sync_additional_data DROP FOREIGN KEY FK_5ADBED37987212D');
$this->addSql('DROP TABLE channel_materials');
$this->addSql('DROP TABLE channel_rooms_materials');
$this->addSql('DROP TABLE channel_places');
$this->addSql('DROP TABLE channel_rooms');
$this->addSql('DROP TABLE channel_sessions');
$this->addSql('DROP TABLE channel_session_coordinators');
$this->addSql('DROP TABLE channel_trainings');
$this->addSql('DROP TABLE channel_user_data');
$this->addSql('DROP TABLE channel_user_data_cursus');
$this->addSql('DROP TABLE channel_user_data_cursus_abstract_activity');
$this->addSql('DROP TABLE channel_user_data_cursus_company');
$this->addSql('DROP TABLE channel_user_data_cursus_exam');
$this->addSql('DROP TABLE channel_user_data_cursus_founder');
$this->addSql('DROP TABLE channel_user_data_cursus_founder_adviser');
$this->addSql('DROP TABLE channel_user_data_cursus_founder_tutor');
$this->addSql('DROP TABLE channel_user_data_cursus_meeting_activity');
$this->addSql('DROP TABLE channel_user_data_cursus_message_activity');
$this->addSql('DROP TABLE channel_user_data_cursus_session');
$this->addSql('DROP TABLE channel_user_data_cursus_track_data_activity');
$this->addSql('DROP TABLE channel_user_data_cursus_training');
$this->addSql('DROP TABLE custom_view_cursus');
$this->addSql('DROP TABLE sync_additional_data');
$this->addSql('ALTER TABLE channel_channel_permissions CHANGE perms perms JSON NOT NULL COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE channel_orders CHANGE json_data json_data JSON NOT NULL COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE account_notifications CHANGE link link VARCHAR(255) NOT NULL');
$this->addSql('DROP INDEX IDX_E0E030EDA6A219 ON channel_groups');
$this->addSql('ALTER TABLE channel_groups DROP place_id');
$this->addSql('ALTER TABLE account_users DROP last_connected_at, CHANGE roles roles JSON NOT NULL COMMENT \'(DC2Type:json)\'');
}
}