39 lines
1.0 KiB
PHP
39 lines
1.0 KiB
PHP
|
<?php
|
||
|
|
||
|
declare(strict_types=1);
|
||
|
|
||
|
namespace oat\tao\migrations;
|
||
|
|
||
|
use Doctrine\DBAL\Schema\Schema;
|
||
|
use oat\tao\scripts\tools\migrations\AbstractMigration;
|
||
|
use oat\tao\scripts\install\SetImageAligmentConfig;
|
||
|
use oat\tao\model\ClientLibConfigRegistry;
|
||
|
use common_report_Report as Report;
|
||
|
/**
|
||
|
* Auto-generated Migration: Please modify to your needs!
|
||
|
*/
|
||
|
final class Version202108051320552234_tao extends AbstractMigration
|
||
|
{
|
||
|
|
||
|
public function getDescription(): string
|
||
|
{
|
||
|
return 'Set Image Aligment disabled in Authoring';
|
||
|
}
|
||
|
|
||
|
public function up(Schema $schema): void
|
||
|
{
|
||
|
$this->addReport(
|
||
|
$this->propagate(
|
||
|
new SetImageAligmentConfig())(
|
||
|
['mediaAlignment' => false]
|
||
|
)
|
||
|
);
|
||
|
}
|
||
|
|
||
|
public function down(Schema $schema): void
|
||
|
{
|
||
|
ClientLibConfigRegistry::getRegistry()->remove('ui/image/ImgStateActive');
|
||
|
$this->addReport(new Report(Report::TYPE_SUCCESS, 'Remove configurations for ui/image/ImgStateActive'));
|
||
|
}
|
||
|
}
|