mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 23:23:51 +00:00
generate document with relatorio: config and driver
This commit is contained in:
@@ -1,5 +1,12 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Chill is a software for social workers
|
||||
*
|
||||
* For the full copyright and license information, please view
|
||||
* the LICENSE file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Chill\Migrations\DocGenerator;
|
||||
@@ -9,6 +16,15 @@ use Doctrine\Migrations\AbstractMigration;
|
||||
|
||||
final class Version20211201191757 extends AbstractMigration
|
||||
{
|
||||
public function down(Schema $schema): void
|
||||
{
|
||||
$this->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';
|
||||
@@ -22,13 +38,4 @@ final class Version20211201191757 extends AbstractMigration
|
||||
$this->addSql('COMMENT ON COLUMN chill_docgen_template.template_options IS \'(DC2Type:json)\'');
|
||||
$this->addSql('ALTER TABLE chill_docgen_template DROP entities');
|
||||
}
|
||||
|
||||
public function down(Schema $schema): void
|
||||
{
|
||||
$this->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)\'');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user