use Chamilo\CoreBundle\Migrations\AbstractMigrationChamilo;
10
use Doctrine\DBAL\Schema\Schema;
11
12
class Version20201215072919 extends AbstractMigrationChamilo
13
{
14
public function getDescription(): string
15
{
16
return 'Create agenda_reminder table as fallback to allow to use CCalendarEvent entities';
17
}
18
19
/**
20
* @inheritDoc
21
*/
22
public function up(Schema $schema): void
23
{
24
if (!$schema->hasTable('agenda_reminder')) {
25
$this->addSql(
26
"CREATE TABLE agenda_reminder (id INT AUTO_INCREMENT NOT NULL, event_id INT NOT NULL, date_interval VARCHAR(255) NOT NULL COMMENT '(DC2Type:dateinterval)', sent TINYINT(1) NOT NULL, created_at DATETIME NOT NULL COMMENT '(DC2Type:datetime)', updated_at DATETIME NOT NULL COMMENT '(DC2Type:datetime)', INDEX IDX_416FFA2471F7E88B (event_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB ROW_FORMAT = DYNAMIC"