-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
39 changed files
with
918 additions
and
246 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace oat\pciSamples\migrations; | ||
|
||
use Doctrine\DBAL\Schema\Schema; | ||
use oat\tao\scripts\tools\migrations\AbstractMigration; | ||
use Doctrine\Migrations\Exception\IrreversibleMigration; | ||
use oat\qtiItemPci\model\PciModel; | ||
use oat\pciSamples\scripts\install\RegisterPciTextReader; | ||
|
||
/** | ||
* Auto-generated Migration: Please modify to your needs! | ||
*/ | ||
final class Version202103160949554106_pciSamples extends AbstractMigration | ||
{ | ||
|
||
public function getDescription(): string | ||
{ | ||
return 'Convert Text Reader interaction to IMS compliant'; | ||
} | ||
|
||
public function up(Schema $schema): void | ||
{ | ||
$registry = (new PciModel())->getRegistry(); | ||
if ($registry->has('textReaderInteraction')) { | ||
/** @noinspection PhpUnhandledExceptionInspection */ | ||
$registry->removeAllVersions('textReaderInteraction'); | ||
} | ||
|
||
$this->addReport( | ||
$this->propagate( | ||
new RegisterPciTextReader() | ||
)( | ||
['1.0.0'] | ||
) | ||
); | ||
} | ||
|
||
public function down(Schema $schema): void | ||
{ | ||
throw new IrreversibleMigration( | ||
'In order to undo this migration, please revert the client-side changes and run ' . RegisterPciTextReader::class | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
views/js/pciCreator/dev/textReaderInteraction/runtime/css/textReaderInteraction.css
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
views/js/pciCreator/dev/textReaderInteraction/runtime/css/textReaderInteraction.css.map
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.