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\Calendar;
@@ -8,10 +15,34 @@ use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Create the schema chill_calendar and several calendar entities
* Create the schema chill_calendar and several calendar entities.
*/
final class Version20210715141731 extends AbstractMigration
{
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE chill_calendar.calendar_to_persons DROP CONSTRAINT FK_AEE94715A40A2C8');
$this->addSql('ALTER TABLE chill_calendar.calendar_to_non_professionals DROP CONSTRAINT FK_FADF2C77A40A2C8');
$this->addSql('ALTER TABLE chill_calendar.calendar_to_thirdparties DROP CONSTRAINT FK_2BAB7EFDA40A2C8');
$this->addSql('ALTER TABLE chill_calendar.calendar_to_invites DROP CONSTRAINT FK_FCBEAAAA40A2C8');
$this->addSql('ALTER TABLE chill_calendar.calendar DROP CONSTRAINT FK_712315ACC5CB285D');
$this->addSql('ALTER TABLE chill_calendar.calendar DROP CONSTRAINT FK_712315ACE980772F');
$this->addSql('ALTER TABLE chill_calendar.calendar_to_invites DROP CONSTRAINT FK_FCBEAAAEA417747');
$this->addSql('DROP SEQUENCE chill_calendar.calendar_id_seq CASCADE');
$this->addSql('DROP SEQUENCE chill_calendar.calendar_range_id_seq CASCADE');
$this->addSql('DROP SEQUENCE chill_calendar.cancel_reason_id_seq CASCADE');
$this->addSql('DROP SEQUENCE chill_calendar.invite_id_seq CASCADE');
$this->addSql('DROP TABLE chill_calendar.calendar');
$this->addSql('DROP TABLE chill_calendar.calendar_to_persons');
$this->addSql('DROP TABLE chill_calendar.calendar_to_non_professionals');
$this->addSql('DROP TABLE chill_calendar.calendar_to_thirdparties');
$this->addSql('DROP TABLE chill_calendar.calendar_to_invites');
$this->addSql('DROP TABLE chill_calendar.calendar_range');
$this->addSql('DROP TABLE chill_calendar.cancel_reason');
$this->addSql('DROP TABLE chill_calendar.invite');
$this->addSql('DROP SCHEMA chill_calendar');
}
public function getDescription(): string
{
return 'Create the schema chill_calendar and several calendar entities';
@@ -69,28 +100,4 @@ final class Version20210715141731 extends AbstractMigration
$this->addSql('ALTER TABLE chill_calendar.calendar_range ADD CONSTRAINT FK_38D57D05A76ED395 FOREIGN KEY (user_id) REFERENCES users (id) NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE chill_calendar.invite ADD CONSTRAINT FK_F517FFA7A76ED395 FOREIGN KEY (user_id) REFERENCES users (id) NOT DEFERRABLE INITIALLY IMMEDIATE');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE chill_calendar.calendar_to_persons DROP CONSTRAINT FK_AEE94715A40A2C8');
$this->addSql('ALTER TABLE chill_calendar.calendar_to_non_professionals DROP CONSTRAINT FK_FADF2C77A40A2C8');
$this->addSql('ALTER TABLE chill_calendar.calendar_to_thirdparties DROP CONSTRAINT FK_2BAB7EFDA40A2C8');
$this->addSql('ALTER TABLE chill_calendar.calendar_to_invites DROP CONSTRAINT FK_FCBEAAAA40A2C8');
$this->addSql('ALTER TABLE chill_calendar.calendar DROP CONSTRAINT FK_712315ACC5CB285D');
$this->addSql('ALTER TABLE chill_calendar.calendar DROP CONSTRAINT FK_712315ACE980772F');
$this->addSql('ALTER TABLE chill_calendar.calendar_to_invites DROP CONSTRAINT FK_FCBEAAAEA417747');
$this->addSql('DROP SEQUENCE chill_calendar.calendar_id_seq CASCADE');
$this->addSql('DROP SEQUENCE chill_calendar.calendar_range_id_seq CASCADE');
$this->addSql('DROP SEQUENCE chill_calendar.cancel_reason_id_seq CASCADE');
$this->addSql('DROP SEQUENCE chill_calendar.invite_id_seq CASCADE');
$this->addSql('DROP TABLE chill_calendar.calendar');
$this->addSql('DROP TABLE chill_calendar.calendar_to_persons');
$this->addSql('DROP TABLE chill_calendar.calendar_to_non_professionals');
$this->addSql('DROP TABLE chill_calendar.calendar_to_thirdparties');
$this->addSql('DROP TABLE chill_calendar.calendar_to_invites');
$this->addSql('DROP TABLE chill_calendar.calendar_range');
$this->addSql('DROP TABLE chill_calendar.cancel_reason');
$this->addSql('DROP TABLE chill_calendar.invite');
$this->addSql('DROP SCHEMA chill_calendar');
}
}