addSql('ALTER TABLE chill_docgen_template DROP active'); $this->addSql('ALTER TABLE chill_docgen_template DROP entity'); $this->addSql('ALTER TABLE chill_docgen_template DROP template_options'); $this->addSql('ALTER TABLE chill_docgen_template ADD entities TEXT'); $this->addSql('COMMENT ON COLUMN chill_docgen_template.entities IS \'(DC2Type:simple_array)\''); } public function getDescription(): string { return 'Add options, active and link to entity in docgen_template'; } public function up(Schema $schema): void { $this->addSql('ALTER TABLE chill_docgen_template ADD active BOOLEAN DEFAULT true NOT NULL'); $this->addSql('ALTER TABLE chill_docgen_template ADD entity VARCHAR(255) NOT NULL DEFAULT \'\''); $this->addSql('ALTER TABLE chill_docgen_template ADD template_options JSONB NOT NULL DEFAULT \'[]\'::jsonb '); $this->addSql('COMMENT ON COLUMN chill_docgen_template.template_options IS \'(DC2Type:json)\''); $this->addSql('ALTER TABLE chill_docgen_template DROP entities'); } }