Add migration to create c_calendar_event.collective

pull/3939/head
Angel Fernando Quiroz Campos 4 years ago
parent 8861ba8279
commit bbbb307647
  1. 32
      src/CoreBundle/Migrations/Schema/V200/Version20210802194737.php

@ -0,0 +1,32 @@
<?php
declare(strict_types=1);
namespace Chamilo\CoreBundle\Migrations\Schema\V200;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\DBAL\Types\Types;
use Doctrine\Migrations\AbstractMigration;
final class Version20210802194737 extends AbstractMigration
{
public function getDescription(): string
{
return 'Add collective field to c_calendar_event';
}
public function up(Schema $schema): void
{
$schema
->getTable('c_calendar_event')
->addColumn('collective', Types::BOOLEAN)
->setDefault(false);
}
public function down(Schema $schema): void
{
$schema
->getTable('c_calendar_event')
->dropColumn('collective');
}
}
Loading…
Cancel
Save