Skip to content
Snippets Groups Projects
Commit 7a430d23 authored by Jonathan Foucher's avatar Jonathan Foucher
Browse files

cs-fix

parent 15487773
No related branches found
No related tags found
No related merge requests found
Pipeline #25601 passed
......@@ -22,7 +22,7 @@ final class Version20220215104949 extends AbstractMigration
// this up() migration is auto-generated, please modify it to your needs
$this->abortIf('mysql' !== $this->connection->getDatabasePlatform()->getName(), 'Migration can only be executed safely on \'mysql\'.');
$this->addSql('ALTER TABLE registry_treatment ADD dpo_message VARCHAR(255) DEFAULT NULL, CHANGE collectivity_id collectivity_id CHAR(36) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', CHANGE creator_id creator_id CHAR(36) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', CHANGE cloned_from_id cloned_from_id CHAR(36) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', CHANGE service_id service_id CHAR(36) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', CHANGE software software VARCHAR(255) DEFAULT NULL, CHANGE legal_basis legal_basis JSON DEFAULT NULL COMMENT \'(DC2Type:json_array)\', CHANGE delay_number delay_number INT DEFAULT NULL, CHANGE delay_period delay_period VARCHAR(255) DEFAULT NULL, CHANGE manager manager VARCHAR(255) DEFAULT NULL, CHANGE security_access_control_comment security_access_control_comment VARCHAR(255) DEFAULT NULL, CHANGE security_tracability_comment security_tracability_comment VARCHAR(255) DEFAULT NULL, CHANGE security_saving_comment security_saving_comment VARCHAR(255) DEFAULT NULL, CHANGE security_update_comment security_update_comment VARCHAR(255) DEFAULT NULL, CHANGE security_other_comment security_other_comment VARCHAR(255) DEFAULT NULL, CHANGE template_identifier template_identifier INT DEFAULT NULL, CHANGE data_origin data_origin VARCHAR(255) DEFAULT NULL, CHANGE author author VARCHAR(255) DEFAULT NULL, CHANGE concerned_people_particular_comment concerned_people_particular_comment VARCHAR(255) DEFAULT NULL, CHANGE concerned_people_user_comment concerned_people_user_comment VARCHAR(255) DEFAULT NULL, CHANGE concerned_people_agent_comment concerned_people_agent_comment VARCHAR(255) DEFAULT NULL, CHANGE concerned_people_elected_comment concerned_people_elected_comment VARCHAR(255) DEFAULT NULL, CHANGE concerned_people_company_comment concerned_people_company_comment VARCHAR(255) DEFAULT NULL, CHANGE concerned_people_partner_comment concerned_people_partner_comment VARCHAR(255) DEFAULT NULL, CHANGE concerned_people_other_comment concerned_people_other_comment VARCHAR(255) DEFAULT NULL, CHANGE collecting_method collecting_method JSON DEFAULT NULL COMMENT \'(DC2Type:json_array)\', CHANGE estimated_concerned_people estimated_concerned_people INT DEFAULT NULL, CHANGE ultimate_fate ultimate_fate VARCHAR(255) DEFAULT NULL, CHANGE coordonnees_responsable_traitement coordonnees_responsable_traitement VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE registry_treatment ADD dpo_message VARCHAR(255) DEFAULT NULL, CHANGE collectivity_id collectivity_id CHAR(36) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', CHANGE creator_id creator_id CHAR(36) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', CHANGE cloned_from_id cloned_from_id CHAR(36) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', CHANGE service_id service_id CHAR(36) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', CHANGE software software VARCHAR(255) DEFAULT NULL, CHANGE legal_basis legal_basis JSON DEFAULT NULL COMMENT \'(DC2Type:json_array)\', CHANGE delay_number delay_number INT DEFAULT NULL, CHANGE delay_period delay_period VARCHAR(255) DEFAULT NULL, CHANGE manager manager VARCHAR(255) DEFAULT NULL, CHANGE security_access_control_comment security_access_control_comment VARCHAR(255) DEFAULT NULL, CHANGE security_tracability_comment security_tracability_comment VARCHAR(255) DEFAULT NULL, CHANGE security_saving_comment security_saving_comment VARCHAR(255) DEFAULT NULL, CHANGE security_update_comment security_update_comment VARCHAR(255) DEFAULT NULL, CHANGE security_other_comment security_other_comment VARCHAR(255) DEFAULT NULL, CHANGE template_identifier template_identifier INT DEFAULT NULL, CHANGE data_origin data_origin VARCHAR(255) DEFAULT NULL, CHANGE author author VARCHAR(255) DEFAULT NULL, CHANGE concerned_people_particular_comment concerned_people_particular_comment VARCHAR(255) DEFAULT NULL, CHANGE concerned_people_user_comment concerned_people_user_comment VARCHAR(255) DEFAULT NULL, CHANGE concerned_people_agent_comment concerned_people_agent_comment VARCHAR(255) DEFAULT NULL, CHANGE concerned_people_elected_comment concerned_people_elected_comment VARCHAR(255) DEFAULT NULL, CHANGE concerned_people_company_comment concerned_people_company_comment VARCHAR(255) DEFAULT NULL, CHANGE concerned_people_partner_comment concerned_people_partner_comment VARCHAR(255) DEFAULT NULL, CHANGE concerned_people_other_comment concerned_people_other_comment VARCHAR(255) DEFAULT NULL, CHANGE collecting_method collecting_method JSON DEFAULT NULL COMMENT \'(DC2Type:json_array)\', CHANGE estimated_concerned_people estimated_concerned_people INT DEFAULT NULL, CHANGE ultimate_fate ultimate_fate VARCHAR(255) DEFAULT NULL, CHANGE coordonnees_responsable_traitement coordonnees_responsable_traitement VARCHAR(255) DEFAULT NULL');
}
public function down(Schema $schema): void
......
......@@ -21,13 +21,11 @@ final class Version20220215111058 extends AbstractMigration
{
// this up() migration is auto-generated, please modify it to your needs
$this->abortIf('mysql' !== $this->connection->getDatabasePlatform()->getName(), 'Migration can only be executed safely on \'mysql\'.');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->abortIf('mysql' !== $this->connection->getDatabasePlatform()->getName(), 'Migration can only be executed safely on \'mysql\'.');
}
}
......@@ -28,7 +28,7 @@ final class Version20220222130548 extends AbstractMigration
$this->addSql('ALTER TABLE registry_treatment_request ADD CONSTRAINT FK_D83DF45F427EB8A5 FOREIGN KEY (request_id) REFERENCES registry_request (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE registry_treatment_violation ADD CONSTRAINT FK_EB97D8B2471C0366 FOREIGN KEY (treatment_id) REFERENCES registry_treatment (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE registry_treatment_violation ADD CONSTRAINT FK_EB97D8B27386118A FOREIGN KEY (violation_id) REFERENCES registry_violation (id) ON DELETE CASCADE');
}
}
public function down(Schema $schema): void
{
......@@ -37,5 +37,5 @@ final class Version20220222130548 extends AbstractMigration
$this->addSql('DROP TABLE registry_treatment_request');
$this->addSql('DROP TABLE registry_treatment_violation');
}
}
}
......@@ -21,13 +21,11 @@ final class Version20220224095109 extends AbstractMigration
{
// this up() migration is auto-generated, please modify it to your needs
$this->abortIf('mysql' !== $this->connection->getDatabasePlatform()->getName(), 'Migration can only be executed safely on \'mysql\'.');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->abortIf('mysql' !== $this->connection->getDatabasePlatform()->getName(), 'Migration can only be executed safely on \'mysql\'.');
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment