mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-29 02:53:50 +00:00
cs: Fix code style (safe rules only).
This commit is contained in:
@@ -1,5 +1,12 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Chill is a software for social workers
|
||||
*
|
||||
* For the full copyright and license information, please view
|
||||
* the LICENSE file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Chill\Migrations\Person;
|
||||
@@ -8,16 +15,33 @@ use Doctrine\DBAL\Schema\Schema;
|
||||
use Doctrine\Migrations\AbstractMigration;
|
||||
|
||||
/**
|
||||
* Create tables for the entites AccomanyingPeriodWork, AccomanyingPeriodWorkGoal & Social/WorkEvaluation
|
||||
* Create tables for the entites AccomanyingPeriodWork, AccomanyingPeriodWorkGoal & Social/WorkEvaluation.
|
||||
*/
|
||||
final class Version20210427125700 extends AbstractMigration
|
||||
{
|
||||
public function getDescription() : string
|
||||
public function down(Schema $schema): void
|
||||
{
|
||||
$this->addSql('ALTER TABLE chill_person_accompanying_period_work_result DROP CONSTRAINT FK_46E95929B99F6060');
|
||||
$this->addSql('ALTER TABLE chill_person_accompanying_period_work_third_party DROP CONSTRAINT FK_83B57B86B99F6060');
|
||||
$this->addSql('ALTER TABLE chill_person_accompanying_period_work_goal DROP CONSTRAINT FK_911B88FEC55C1209');
|
||||
$this->addSql('ALTER TABLE chill_person_accompanying_period_work_goal_result DROP CONSTRAINT FK_3E37D1F37B14AD03');
|
||||
$this->addSql('DROP SEQUENCE chill_person_accompanying_period_work_id_seq CASCADE');
|
||||
$this->addSql('DROP SEQUENCE chill_person_accompanying_period_work_goal_id_seq CASCADE');
|
||||
$this->addSql('DROP SEQUENCE chill_person_social_work_evaluation_id_seq CASCADE');
|
||||
$this->addSql('DROP TABLE chill_person_accompanying_period_work');
|
||||
$this->addSql('DROP TABLE chill_person_accompanying_period_work_result');
|
||||
$this->addSql('DROP TABLE chill_person_accompanying_period_work_third_party');
|
||||
$this->addSql('DROP TABLE chill_person_accompanying_period_work_goal');
|
||||
$this->addSql('DROP TABLE chill_person_accompanying_period_work_goal_result');
|
||||
$this->addSql('DROP TABLE chill_person_social_work_evaluation');
|
||||
}
|
||||
|
||||
public function getDescription(): string
|
||||
{
|
||||
return 'Create tables for the entites AccomanyingPeriodWork, AccomanyingPeriodWorkGoal & Social/WorkEvaluation';
|
||||
}
|
||||
|
||||
public function up(Schema $schema) : void
|
||||
public function up(Schema $schema): void
|
||||
{
|
||||
$this->addSql('CREATE SEQUENCE chill_person_accompanying_period_work_id_seq INCREMENT BY 1 MINVALUE 1 START 1');
|
||||
$this->addSql('CREATE SEQUENCE chill_person_accompanying_period_work_goal_id_seq INCREMENT BY 1 MINVALUE 1 START 1');
|
||||
@@ -57,21 +81,4 @@ final class Version20210427125700 extends AbstractMigration
|
||||
$this->addSql('ALTER TABLE chill_person_accompanying_period_work_goal_result ADD CONSTRAINT FK_3E37D1F37A7B643 FOREIGN KEY (result_id) REFERENCES chill_person_social_work_result (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE');
|
||||
$this->addSql('ALTER TABLE chill_person_social_work_evaluation ADD CONSTRAINT FK_2E23F3FEBF32A3DA FOREIGN KEY (socialAction_id) REFERENCES chill_person_social_action (id) NOT DEFERRABLE INITIALLY IMMEDIATE');
|
||||
}
|
||||
|
||||
public function down(Schema $schema) : void
|
||||
{
|
||||
$this->addSql('ALTER TABLE chill_person_accompanying_period_work_result DROP CONSTRAINT FK_46E95929B99F6060');
|
||||
$this->addSql('ALTER TABLE chill_person_accompanying_period_work_third_party DROP CONSTRAINT FK_83B57B86B99F6060');
|
||||
$this->addSql('ALTER TABLE chill_person_accompanying_period_work_goal DROP CONSTRAINT FK_911B88FEC55C1209');
|
||||
$this->addSql('ALTER TABLE chill_person_accompanying_period_work_goal_result DROP CONSTRAINT FK_3E37D1F37B14AD03');
|
||||
$this->addSql('DROP SEQUENCE chill_person_accompanying_period_work_id_seq CASCADE');
|
||||
$this->addSql('DROP SEQUENCE chill_person_accompanying_period_work_goal_id_seq CASCADE');
|
||||
$this->addSql('DROP SEQUENCE chill_person_social_work_evaluation_id_seq CASCADE');
|
||||
$this->addSql('DROP TABLE chill_person_accompanying_period_work');
|
||||
$this->addSql('DROP TABLE chill_person_accompanying_period_work_result');
|
||||
$this->addSql('DROP TABLE chill_person_accompanying_period_work_third_party');
|
||||
$this->addSql('DROP TABLE chill_person_accompanying_period_work_goal');
|
||||
$this->addSql('DROP TABLE chill_person_accompanying_period_work_goal_result');
|
||||
$this->addSql('DROP TABLE chill_person_social_work_evaluation');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user