fixes for adding evaluation document

This commit is contained in:
2022-02-25 16:13:31 +01:00
parent c1f5730c4d
commit af0d7765ff
3 changed files with 33 additions and 34 deletions

View File

@@ -31,6 +31,8 @@ final class Version20220224145951 extends AbstractMigration
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE chill_person_accompanying_period_work_evaluation_document ADD title TEXT DEFAULT NULL');
$this->addSql('ALTER TABLE chill_person_accompanying_period_work_evaluation_document ADD title TEXT NOT NULL DEFAULT \'\'');
$this->addSql('UPDATE chill_person_accompanying_period_work_evaluation_document SET title=name->>\'fr\'
FROM chill_docgen_template cdt WHERE cdt.id = chill_person_accompanying_period_work_evaluation_document.template_id');
}
}