cs: Fix code style (safe rules only).

This commit is contained in:
Pol Dellaiera
2021-11-23 14:06:38 +01:00
parent 149d7ce991
commit 8f96a1121d
1223 changed files with 65199 additions and 64625 deletions

View File

@@ -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\Main;
@@ -12,6 +19,23 @@ use Doctrine\Migrations\AbstractMigration;
*/
final class Version20211012141336 extends AbstractMigration
{
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE activity DROP CONSTRAINT FK_AC74095A64D218E');
$this->addSql('ALTER TABLE activity DROP location_id');
$this->addSql('ALTER TABLE chill_calendar.calendar DROP CONSTRAINT FK_712315AC64D218E');
$this->addSql('ALTER TABLE chill_calendar.calendar DROP location_id');
$this->addSql('ALTER TABLE chill_main_location DROP CONSTRAINT FK_90E4736AB8B0DA8E');
$this->addSql('DROP SEQUENCE chill_main_location_id_seq CASCADE');
$this->addSql('DROP SEQUENCE chill_main_location_type_id_seq CASCADE');
$this->addSql('DROP TABLE chill_main_location');
$this->addSql('DROP TABLE chill_main_location_type');
}
public function getDescription(): string
{
return 'Add Location and LocationType Entities (for activity and calendar)';
@@ -45,22 +69,4 @@ final class Version20211012141336 extends AbstractMigration
$this->addSql('ALTER TABLE chill_calendar.calendar ADD CONSTRAINT FK_712315AC64D218E FOREIGN KEY (location_id) REFERENCES chill_main_location (id) NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('CREATE INDEX IDX_712315AC64D218E ON chill_calendar.calendar (location_id)');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE activity DROP CONSTRAINT FK_AC74095A64D218E');
$this->addSql('ALTER TABLE activity DROP location_id');
$this->addSql('ALTER TABLE chill_calendar.calendar DROP CONSTRAINT FK_712315AC64D218E');
$this->addSql('ALTER TABLE chill_calendar.calendar DROP location_id');
$this->addSql('ALTER TABLE chill_main_location DROP CONSTRAINT FK_90E4736AB8B0DA8E');
$this->addSql('DROP SEQUENCE chill_main_location_id_seq CASCADE');
$this->addSql('DROP SEQUENCE chill_main_location_type_id_seq CASCADE');
$this->addSql('DROP TABLE chill_main_location');
$this->addSql('DROP TABLE chill_main_location_type');
}
}