37 lines
852 B
PHP
37 lines
852 B
PHP
|
<?php
|
||
|
|
||
|
declare(strict_types=1);
|
||
|
|
||
|
namespace oat\taoLti\migrations;
|
||
|
|
||
|
use Doctrine\DBAL\Schema\Schema;
|
||
|
use Doctrine\Migrations\Exception\IrreversibleMigration;
|
||
|
use oat\tao\scripts\SyncModels;
|
||
|
use oat\tao\scripts\tools\migrations\AbstractMigration;
|
||
|
|
||
|
/**
|
||
|
* Auto-generated Migration: Please modify to your needs!
|
||
|
*/
|
||
|
final class Version202109230814043772_taoLti extends AbstractMigration
|
||
|
{
|
||
|
|
||
|
public function getDescription(): string
|
||
|
{
|
||
|
return 'Add LTI 1p3 Learner Role';
|
||
|
}
|
||
|
|
||
|
public function up(Schema $schema): void
|
||
|
{
|
||
|
$this->addReport(
|
||
|
$this->propagate(new SyncModels())([])
|
||
|
);
|
||
|
}
|
||
|
|
||
|
public function down(Schema $schema): void
|
||
|
{
|
||
|
throw new IrreversibleMigration(
|
||
|
'The models should be updated via `SyncModels` script after reverting their RDF definitions.'
|
||
|
);
|
||
|
}
|
||
|
}
|