mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-05 14:25:00 +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\DocStore;
|
||||
@@ -12,6 +19,26 @@ use Doctrine\Migrations\AbstractMigration;
|
||||
*/
|
||||
final class Version20210903123835 extends AbstractMigration
|
||||
{
|
||||
public function down(Schema $schema): void
|
||||
{
|
||||
$this->addSql('ALTER TABLE chill_doc.accompanyingcourse_document DROP CONSTRAINT FK_A45098F6369A0BE36EF62EFC');
|
||||
$this->addSql('ALTER TABLE chill_doc.accompanyingcourse_document DROP CONSTRAINT FK_A45098F6232D562B');
|
||||
$this->addSql('ALTER TABLE chill_doc.accompanyingcourse_document DROP CONSTRAINT FK_A45098F6682B5931');
|
||||
$this->addSql('ALTER TABLE chill_doc.accompanyingcourse_document DROP CONSTRAINT FK_A45098F6A76ED395');
|
||||
$this->addSql('DROP INDEX IDX_A45098F6369A0BE36EF62EFC');
|
||||
$this->addSql('DROP INDEX IDX_A45098F6232D562B');
|
||||
$this->addSql('DROP INDEX IDX_A45098F6682B5931');
|
||||
$this->addSql('DROP INDEX IDX_A45098F6A76ED395');
|
||||
$this->addSql('ALTER TABLE chill_doc.accompanyingcourse_document DROP category_bundle_id');
|
||||
$this->addSql('ALTER TABLE chill_doc.accompanyingcourse_document DROP category_id_inside_bundle');
|
||||
$this->addSql('ALTER TABLE chill_doc.accompanyingcourse_document DROP object_id');
|
||||
$this->addSql('ALTER TABLE chill_doc.accompanyingcourse_document DROP scope_id');
|
||||
$this->addSql('ALTER TABLE chill_doc.accompanyingcourse_document DROP user_id');
|
||||
$this->addSql('ALTER TABLE chill_doc.accompanyingcourse_document DROP title');
|
||||
$this->addSql('ALTER TABLE chill_doc.accompanyingcourse_document DROP description');
|
||||
$this->addSql('ALTER TABLE chill_doc.accompanyingcourse_document DROP date');
|
||||
}
|
||||
|
||||
public function getDescription(): string
|
||||
{
|
||||
return '';
|
||||
@@ -36,24 +63,4 @@ final class Version20210903123835 extends AbstractMigration
|
||||
$this->addSql('CREATE INDEX IDX_A45098F6682B5931 ON chill_doc.accompanyingcourse_document (scope_id)');
|
||||
$this->addSql('CREATE INDEX IDX_A45098F6A76ED395 ON chill_doc.accompanyingcourse_document (user_id)');
|
||||
}
|
||||
|
||||
public function down(Schema $schema): void
|
||||
{
|
||||
$this->addSql('ALTER TABLE chill_doc.accompanyingcourse_document DROP CONSTRAINT FK_A45098F6369A0BE36EF62EFC');
|
||||
$this->addSql('ALTER TABLE chill_doc.accompanyingcourse_document DROP CONSTRAINT FK_A45098F6232D562B');
|
||||
$this->addSql('ALTER TABLE chill_doc.accompanyingcourse_document DROP CONSTRAINT FK_A45098F6682B5931');
|
||||
$this->addSql('ALTER TABLE chill_doc.accompanyingcourse_document DROP CONSTRAINT FK_A45098F6A76ED395');
|
||||
$this->addSql('DROP INDEX IDX_A45098F6369A0BE36EF62EFC');
|
||||
$this->addSql('DROP INDEX IDX_A45098F6232D562B');
|
||||
$this->addSql('DROP INDEX IDX_A45098F6682B5931');
|
||||
$this->addSql('DROP INDEX IDX_A45098F6A76ED395');
|
||||
$this->addSql('ALTER TABLE chill_doc.accompanyingcourse_document DROP category_bundle_id');
|
||||
$this->addSql('ALTER TABLE chill_doc.accompanyingcourse_document DROP category_id_inside_bundle');
|
||||
$this->addSql('ALTER TABLE chill_doc.accompanyingcourse_document DROP object_id');
|
||||
$this->addSql('ALTER TABLE chill_doc.accompanyingcourse_document DROP scope_id');
|
||||
$this->addSql('ALTER TABLE chill_doc.accompanyingcourse_document DROP user_id');
|
||||
$this->addSql('ALTER TABLE chill_doc.accompanyingcourse_document DROP title');
|
||||
$this->addSql('ALTER TABLE chill_doc.accompanyingcourse_document DROP description');
|
||||
$this->addSql('ALTER TABLE chill_doc.accompanyingcourse_document DROP date');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user