mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-25 00:53:48 +00:00
Add column option, definition in config & adapt form
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 }} ```
This commit is contained in:
22
Resources/migrations/Version20150224164531.php
Normal file
22
Resources/migrations/Version20150224164531.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?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');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user