Load social work, and fix some repositories

This commit is contained in:
2021-07-30 23:42:30 +02:00
committed by Marc Ducobu
parent 8a962a4f1c
commit 0e2e7155fb
9 changed files with 623 additions and 427 deletions

View File

@@ -19,7 +19,7 @@ final class Version20210730094514 extends AbstractMigration
public function up(Schema $schema): void
{
$this->addSql('CREATE SEQUENCE chill_person_accompanying_period_work_evaluation_document_id_seq INCREMENT BY 1 MINVALUE 1 START 1');
$this->addSql('CREATE SEQUENCE chill_person_accompanying_period_work_eval_doc_id_seq INCREMENT BY 1 MINVALUE 1 START 1000');
$this->addSql('CREATE TABLE chill_person_accompanying_period_work_evaluation_document (id INT NOT NULL, createdAt DATE DEFAULT NULL, updatedAt DATE DEFAULT NULL, accompanyingPeriodWorkEvaluation_id INT DEFAULT NULL, createdBy_id INT DEFAULT NULL, updatedBy_id INT DEFAULT NULL, PRIMARY KEY(id))');
$this->addSql('CREATE INDEX IDX_33EC9229836F75B8 ON chill_person_accompanying_period_work_evaluation_document (accompanyingPeriodWorkEvaluation_id)');
$this->addSql('CREATE INDEX IDX_33EC92293174800F ON chill_person_accompanying_period_work_evaluation_document (createdBy_id)');
@@ -40,7 +40,7 @@ final class Version20210730094514 extends AbstractMigration
$this->addSql('COMMENT ON COLUMN chill_calendar.calendar_range.startdate IS \'(DC2Type:datetimetz_immutable)\'');
$this->addSql('COMMENT ON COLUMN chill_calendar.calendar_range.enddate IS \'(DC2Type:datetimetz_immutable)\'');
$this->addSql('DROP TABLE chill_person_accompanying_period_work_evaluation_document');
$this->addSql('DROP SEQUENCE chill_person_accompanying_period_work_evaluation_document_id_seq');
$this->addSql('DROP SEQUENCE chill_person_accompanying_period_work_eval_doc_id_seq');
$this->addSql('ALTER TABLE chill_person_accompanying_period_work DROP CONSTRAINT FK_B694FB365FF1AEC');
$this->addSql('DROP INDEX IDX_B694FB365FF1AEC');
}