tao-test/app/tao/migrations/Version202108261748123245_tao.php

33 lines
806 B
PHP
Raw Permalink Normal View History

2022-08-29 20:14:13 +02:00
<?php
declare(strict_types=1);
namespace oat\tao\migrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\Exception\IrreversibleMigration;
use oat\tao\scripts\SyncModels;
use oat\tao\scripts\tools\migrations\AbstractMigration;
final class Version202108261748123245_tao extends AbstractMigration
{
public function getDescription(): string
{
return 'Update Ontology models to fix Japanese translations';
}
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.'
);
}
}