mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-16 07:14:25 +00:00
Exemple for configuration : ``` chill_custom_fields: customizables_entities: - class: Chill\ReportBundle\Entity\Report name: ReportEntity options: summary_fields: {key: abc, form_type: text, form_options: { required: false }} ```
23 lines
503 B
PHP
23 lines
503 B
PHP
<?php
|
|
|
|
namespace Application\Migrations;
|
|
|
|
use Doctrine\DBAL\Migrations\AbstractMigration;
|
|
use Doctrine\DBAL\Schema\Schema;
|
|
|
|
/**
|
|
* Add an option column to customfieldsgroup
|
|
*/
|
|
class Version20150224164531 extends AbstractMigration
|
|
{
|
|
public function up(Schema $schema)
|
|
{
|
|
$this->addSql('ALTER TABLE customfieldsgroup ADD options JSON DEFAULT \'{}\'::json');
|
|
}
|
|
|
|
public function down(Schema $schema)
|
|
{
|
|
$this->addSql('ALTER TABLE CustomFieldsGroup DROP options');
|
|
}
|
|
}
|