<?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 Version20220430182159 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 `calendar_patient` (id INT AUTO_INCREMENT NOT NULL, patient_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', schedule DATETIME NOT NULL, name VARCHAR(190) DEFAULT NULL, created_at DATETIME NOT NULL, INDEX IDX_78ADAC2C6B899279 (patient_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE `calendar_professional` (id INT AUTO_INCREMENT NOT NULL, office_id INT NOT NULL, professional_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', day_schedule DATE NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, interval_day_status VARCHAR(10) NOT NULL, INDEX IDX_52CB170CFFA0C224 (office_id), INDEX IDX_52CB170CDB77003 (professional_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE `care` (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(190) NOT NULL, active TINYINT(1) NOT NULL, type INT NOT NULL, rank INT NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE `care_option` (id INT AUTO_INCREMENT NOT NULL, id_care INT NOT NULL, name VARCHAR(190) NOT NULL, type INT NOT NULL, value_select LONGTEXT DEFAULT NULL COMMENT \'(DC2Type:array)\', rank INT NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE `care_option_event` (id INT AUTO_INCREMENT NOT NULL, id_event INT NOT NULL, id_care_option INT NOT NULL, value VARCHAR(255) DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE `care_patient` (id INT AUTO_INCREMENT NOT NULL, id_care INT NOT NULL, id_patient INT NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE `event` (id INT AUTO_INCREMENT NOT NULL, id_patient INT NOT NULL, id_professional INT DEFAULT NULL, id_office INT NOT NULL, schedule DATETIME NOT NULL, comment LONGTEXT DEFAULT NULL, is_checked TINYINT(1) NOT NULL, is_locked TINYINT(1) NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE `event_configuration` (id INT AUTO_INCREMENT NOT NULL, patient_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', end_date DATETIME NOT NULL, days VARCHAR(50) NOT NULL, hours VARCHAR(150) NOT NULL, UNIQUE INDEX UNIQ_81BB157B6B899279 (patient_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE `invitation_office_to_office` (id INT AUTO_INCREMENT NOT NULL, from_user_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', to_office_id INT NOT NULL, status INT NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, INDEX IDX_76F35E432130303A (from_user_id), INDEX IDX_76F35E43CE031555 (to_office_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE `invitation_office_to_professional` (id INT AUTO_INCREMENT NOT NULL, from_user_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', to_email VARCHAR(100) NOT NULL, status INT NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, INDEX IDX_FA9698752130303A (from_user_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE `message_patient` (id INT AUTO_INCREMENT NOT NULL, author_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', affected_patient_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', content LONGTEXT NOT NULL, view TINYINT(1) NOT NULL, type INT NOT NULL, created_at DATETIME NOT NULL, INDEX IDX_8A52EDE7F675F31B (author_id), INDEX IDX_8A52EDE7E355E95A (affected_patient_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE `notification` (id INT AUTO_INCREMENT NOT NULL, user_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', patient_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', calendar_patient_id INT DEFAULT NULL, type INT NOT NULL, is_viewed TINYINT(1) NOT NULL, created_at DATETIME NOT NULL, INDEX IDX_BF5476CAA76ED395 (user_id), INDEX IDX_BF5476CA6B899279 (patient_id), INDEX IDX_BF5476CAFDC3567C (calendar_patient_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE `office` (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(150) NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, address1 VARCHAR(190) NOT NULL, address2 VARCHAR(190) DEFAULT NULL, postal_code INT NOT NULL, city VARCHAR(190) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE `paper_patient` (id INT AUTO_INCREMENT NOT NULL, patient_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', name VARCHAR(190) NOT NULL, image_name VARCHAR(190) NOT NULL, type INT NOT NULL, created_at DATETIME NOT NULL, INDEX IDX_1A7E850A6B899279 (patient_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE `patient` (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', user_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', first_name VARCHAR(80) NOT NULL, last_name VARCHAR(80) NOT NULL, is_deleted TINYINT(1) NOT NULL, address1 VARCHAR(180) DEFAULT NULL, address2 VARCHAR(180) DEFAULT NULL, postal_code INT DEFAULT NULL, city VARCHAR(180) DEFAULT NULL, is_guardianship TINYINT(1) DEFAULT NULL, type_of_guardianship INT DEFAULT NULL, medical_history LONGTEXT DEFAULT NULL, surgical_history LONGTEXT DEFAULT NULL, allergies LONGTEXT DEFAULT NULL, special_diet LONGTEXT DEFAULT NULL, vaccination LONGTEXT DEFAULT NULL, gender_status INT NOT NULL, blood_group VARCHAR(50) DEFAULT NULL, informations LONGTEXT DEFAULT NULL, UNIQUE INDEX UNIQ_1ADAD7EBA76ED395 (user_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE `patient_delete_reason` (id INT AUTO_INCREMENT NOT NULL, patient_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', reason LONGTEXT DEFAULT NULL, created_at DATETIME NOT NULL, UNIQUE INDEX UNIQ_B7EBE49A6B899279 (patient_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE `patient_office_history` (id INT AUTO_INCREMENT NOT NULL, patient_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', office_id INT NOT NULL, created_at DATETIME NOT NULL, INDEX IDX_E9F7A2426B899279 (patient_id), INDEX IDX_E9F7A242FFA0C224 (office_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE `patient_transfer` (id INT AUTO_INCREMENT NOT NULL, patient_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', office_id INT NOT NULL, is_accepted TINYINT(1) NOT NULL, created_at DATETIME NOT NULL, INDEX IDX_77B1FB656B899279 (patient_id), INDEX IDX_77B1FB65FFA0C224 (office_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE `people_of_guardianship` (id INT AUTO_INCREMENT NOT NULL, patient_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', last_name VARCHAR(100) NOT NULL, first_name VARCHAR(100) NOT NULL, phone VARCHAR(30) NOT NULL, quality VARCHAR(100) NOT NULL, email VARCHAR(100) DEFAULT NULL, INDEX IDX_B757F8376B899279 (patient_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE `people_outside` (id INT AUTO_INCREMENT NOT NULL, patient_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', last_name VARCHAR(100) NOT NULL, first_name VARCHAR(100) NOT NULL, phone VARCHAR(30) NOT NULL, quality VARCHAR(150) NOT NULL, email VARCHAR(100) DEFAULT NULL, INDEX IDX_F543E1E26B899279 (patient_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE `people_resource` (id INT AUTO_INCREMENT NOT NULL, patient_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', last_name VARCHAR(100) NOT NULL, first_name VARCHAR(100) NOT NULL, phone VARCHAR(30) NOT NULL, quality VARCHAR(150) NOT NULL, INDEX IDX_CD60D8836B899279 (patient_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE `people_to_notify` (id INT AUTO_INCREMENT NOT NULL, patient_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', last_name VARCHAR(100) NOT NULL, first_name VARCHAR(100) NOT NULL, phone VARCHAR(30) NOT NULL, quality VARCHAR(150) NOT NULL, INDEX IDX_87BD77B26B899279 (patient_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE `position_alert` (id INT AUTO_INCREMENT NOT NULL, professional_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', latitude VARCHAR(100) NOT NULL, longitude VARCHAR(100) NOT NULL, created_at DATETIME NOT NULL, INDEX IDX_9B3DA21CDB77003 (professional_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE `professional` (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', id_user_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', first_name VARCHAR(50) NOT NULL, last_name VARCHAR(50) NOT NULL, gender_status INT NOT NULL, office_status INT DEFAULT NULL, siret VARCHAR(20) DEFAULT NULL, adeli VARCHAR(20) DEFAULT NULL, ordinal VARCHAR(20) DEFAULT NULL, phone_number VARCHAR(20) NOT NULL, color_status INT NOT NULL, UNIQUE INDEX UNIQ_B3B573AA79F37AE5 (id_user_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE `subscription` (id INT AUTO_INCREMENT NOT NULL, professional_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', is_subscribed TINYINT(1) NOT NULL, end_date DATE DEFAULT NULL, month INT NOT NULL, payment_type INT NOT NULL, reference VARCHAR(50) DEFAULT NULL, user_want_stop TINYINT(1) NOT NULL, end_date_card DATE DEFAULT NULL, created_at DATETIME NOT NULL, mandate_status INT DEFAULT NULL, UNIQUE INDEX UNIQ_A3C664D3DB77003 (professional_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE `user` (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', office_id INT DEFAULT NULL, email VARCHAR(180) NOT NULL, roles LONGTEXT NOT NULL COMMENT \'(DC2Type:json)\', password VARCHAR(255) NOT NULL, name_user VARCHAR(180) NOT NULL, active TINYINT(1) NOT NULL, is_professional TINYINT(1) NOT NULL, reset_token VARCHAR(180) DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, is_first_connexion TINYINT(1) NOT NULL, UNIQUE INDEX UNIQ_8D93D649E7927C74 (email), UNIQUE INDEX UNIQ_8D93D649CA250C3E (name_user), UNIQUE INDEX UNIQ_8D93D649D7C8DC19 (reset_token), INDEX IDX_8D93D649FFA0C224 (office_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 `calendar_patient` ADD CONSTRAINT FK_78ADAC2C6B899279 FOREIGN KEY (patient_id) REFERENCES `patient` (id)');
$this->addSql('ALTER TABLE `calendar_professional` ADD CONSTRAINT FK_52CB170CFFA0C224 FOREIGN KEY (office_id) REFERENCES `office` (id)');
$this->addSql('ALTER TABLE `calendar_professional` ADD CONSTRAINT FK_52CB170CDB77003 FOREIGN KEY (professional_id) REFERENCES `professional` (id)');
$this->addSql('ALTER TABLE `event_configuration` ADD CONSTRAINT FK_81BB157B6B899279 FOREIGN KEY (patient_id) REFERENCES `patient` (id)');
$this->addSql('ALTER TABLE `invitation_office_to_office` ADD CONSTRAINT FK_76F35E432130303A FOREIGN KEY (from_user_id) REFERENCES `user` (id)');
$this->addSql('ALTER TABLE `invitation_office_to_office` ADD CONSTRAINT FK_76F35E43CE031555 FOREIGN KEY (to_office_id) REFERENCES `office` (id)');
$this->addSql('ALTER TABLE `invitation_office_to_professional` ADD CONSTRAINT FK_FA9698752130303A FOREIGN KEY (from_user_id) REFERENCES `user` (id)');
$this->addSql('ALTER TABLE `message_patient` ADD CONSTRAINT FK_8A52EDE7F675F31B FOREIGN KEY (author_id) REFERENCES `user` (id)');
$this->addSql('ALTER TABLE `message_patient` ADD CONSTRAINT FK_8A52EDE7E355E95A FOREIGN KEY (affected_patient_id) REFERENCES `patient` (id)');
$this->addSql('ALTER TABLE `notification` ADD CONSTRAINT FK_BF5476CAA76ED395 FOREIGN KEY (user_id) REFERENCES `user` (id)');
$this->addSql('ALTER TABLE `notification` ADD CONSTRAINT FK_BF5476CA6B899279 FOREIGN KEY (patient_id) REFERENCES `patient` (id)');
$this->addSql('ALTER TABLE `notification` ADD CONSTRAINT FK_BF5476CAFDC3567C FOREIGN KEY (calendar_patient_id) REFERENCES `calendar_patient` (id)');
$this->addSql('ALTER TABLE `paper_patient` ADD CONSTRAINT FK_1A7E850A6B899279 FOREIGN KEY (patient_id) REFERENCES `patient` (id)');
$this->addSql('ALTER TABLE `patient` ADD CONSTRAINT FK_1ADAD7EBA76ED395 FOREIGN KEY (user_id) REFERENCES `user` (id)');
$this->addSql('ALTER TABLE `patient_delete_reason` ADD CONSTRAINT FK_B7EBE49A6B899279 FOREIGN KEY (patient_id) REFERENCES `patient` (id)');
$this->addSql('ALTER TABLE `patient_office_history` ADD CONSTRAINT FK_E9F7A2426B899279 FOREIGN KEY (patient_id) REFERENCES `patient` (id)');
$this->addSql('ALTER TABLE `patient_office_history` ADD CONSTRAINT FK_E9F7A242FFA0C224 FOREIGN KEY (office_id) REFERENCES `office` (id)');
$this->addSql('ALTER TABLE `patient_transfer` ADD CONSTRAINT FK_77B1FB656B899279 FOREIGN KEY (patient_id) REFERENCES `patient` (id)');
$this->addSql('ALTER TABLE `patient_transfer` ADD CONSTRAINT FK_77B1FB65FFA0C224 FOREIGN KEY (office_id) REFERENCES `office` (id)');
$this->addSql('ALTER TABLE `people_of_guardianship` ADD CONSTRAINT FK_B757F8376B899279 FOREIGN KEY (patient_id) REFERENCES `patient` (id)');
$this->addSql('ALTER TABLE `people_outside` ADD CONSTRAINT FK_F543E1E26B899279 FOREIGN KEY (patient_id) REFERENCES `patient` (id)');
$this->addSql('ALTER TABLE `people_resource` ADD CONSTRAINT FK_CD60D8836B899279 FOREIGN KEY (patient_id) REFERENCES `patient` (id)');
$this->addSql('ALTER TABLE `people_to_notify` ADD CONSTRAINT FK_87BD77B26B899279 FOREIGN KEY (patient_id) REFERENCES `patient` (id)');
$this->addSql('ALTER TABLE `position_alert` ADD CONSTRAINT FK_9B3DA21CDB77003 FOREIGN KEY (professional_id) REFERENCES `professional` (id)');
$this->addSql('ALTER TABLE `professional` ADD CONSTRAINT FK_B3B573AA79F37AE5 FOREIGN KEY (id_user_id) REFERENCES `user` (id)');
$this->addSql('ALTER TABLE `subscription` ADD CONSTRAINT FK_A3C664D3DB77003 FOREIGN KEY (professional_id) REFERENCES `professional` (id)');
$this->addSql('ALTER TABLE `user` ADD CONSTRAINT FK_8D93D649FFA0C224 FOREIGN KEY (office_id) REFERENCES `office` (id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE `notification` DROP FOREIGN KEY FK_BF5476CAFDC3567C');
$this->addSql('ALTER TABLE `calendar_professional` DROP FOREIGN KEY FK_52CB170CFFA0C224');
$this->addSql('ALTER TABLE `invitation_office_to_office` DROP FOREIGN KEY FK_76F35E43CE031555');
$this->addSql('ALTER TABLE `patient_office_history` DROP FOREIGN KEY FK_E9F7A242FFA0C224');
$this->addSql('ALTER TABLE `patient_transfer` DROP FOREIGN KEY FK_77B1FB65FFA0C224');
$this->addSql('ALTER TABLE `user` DROP FOREIGN KEY FK_8D93D649FFA0C224');
$this->addSql('ALTER TABLE `calendar_patient` DROP FOREIGN KEY FK_78ADAC2C6B899279');
$this->addSql('ALTER TABLE `event_configuration` DROP FOREIGN KEY FK_81BB157B6B899279');
$this->addSql('ALTER TABLE `message_patient` DROP FOREIGN KEY FK_8A52EDE7E355E95A');
$this->addSql('ALTER TABLE `notification` DROP FOREIGN KEY FK_BF5476CA6B899279');
$this->addSql('ALTER TABLE `paper_patient` DROP FOREIGN KEY FK_1A7E850A6B899279');
$this->addSql('ALTER TABLE `patient_delete_reason` DROP FOREIGN KEY FK_B7EBE49A6B899279');
$this->addSql('ALTER TABLE `patient_office_history` DROP FOREIGN KEY FK_E9F7A2426B899279');
$this->addSql('ALTER TABLE `patient_transfer` DROP FOREIGN KEY FK_77B1FB656B899279');
$this->addSql('ALTER TABLE `people_of_guardianship` DROP FOREIGN KEY FK_B757F8376B899279');
$this->addSql('ALTER TABLE `people_outside` DROP FOREIGN KEY FK_F543E1E26B899279');
$this->addSql('ALTER TABLE `people_resource` DROP FOREIGN KEY FK_CD60D8836B899279');
$this->addSql('ALTER TABLE `people_to_notify` DROP FOREIGN KEY FK_87BD77B26B899279');
$this->addSql('ALTER TABLE `calendar_professional` DROP FOREIGN KEY FK_52CB170CDB77003');
$this->addSql('ALTER TABLE `position_alert` DROP FOREIGN KEY FK_9B3DA21CDB77003');
$this->addSql('ALTER TABLE `subscription` DROP FOREIGN KEY FK_A3C664D3DB77003');
$this->addSql('ALTER TABLE `invitation_office_to_office` DROP FOREIGN KEY FK_76F35E432130303A');
$this->addSql('ALTER TABLE `invitation_office_to_professional` DROP FOREIGN KEY FK_FA9698752130303A');
$this->addSql('ALTER TABLE `message_patient` DROP FOREIGN KEY FK_8A52EDE7F675F31B');
$this->addSql('ALTER TABLE `notification` DROP FOREIGN KEY FK_BF5476CAA76ED395');
$this->addSql('ALTER TABLE `patient` DROP FOREIGN KEY FK_1ADAD7EBA76ED395');
$this->addSql('ALTER TABLE `professional` DROP FOREIGN KEY FK_B3B573AA79F37AE5');
$this->addSql('DROP TABLE `calendar_patient`');
$this->addSql('DROP TABLE `calendar_professional`');
$this->addSql('DROP TABLE `care`');
$this->addSql('DROP TABLE `care_option`');
$this->addSql('DROP TABLE `care_option_event`');
$this->addSql('DROP TABLE `care_patient`');
$this->addSql('DROP TABLE `event`');
$this->addSql('DROP TABLE `event_configuration`');
$this->addSql('DROP TABLE `invitation_office_to_office`');
$this->addSql('DROP TABLE `invitation_office_to_professional`');
$this->addSql('DROP TABLE `message_patient`');
$this->addSql('DROP TABLE `notification`');
$this->addSql('DROP TABLE `office`');
$this->addSql('DROP TABLE `paper_patient`');
$this->addSql('DROP TABLE `patient`');
$this->addSql('DROP TABLE `patient_delete_reason`');
$this->addSql('DROP TABLE `patient_office_history`');
$this->addSql('DROP TABLE `patient_transfer`');
$this->addSql('DROP TABLE `people_of_guardianship`');
$this->addSql('DROP TABLE `people_outside`');
$this->addSql('DROP TABLE `people_resource`');
$this->addSql('DROP TABLE `people_to_notify`');
$this->addSql('DROP TABLE `position_alert`');
$this->addSql('DROP TABLE `professional`');
$this->addSql('DROP TABLE `subscription`');
$this->addSql('DROP TABLE `user`');
$this->addSql('DROP TABLE messenger_messages');
}
}