-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: [NSA-506] Add new symbols to Math Entry interaction for NSA / …
…Next Gen (#384) * New symbols Added additional symbols to the MatheEntryInteraction (%, °, |, ≈) * feat: updating portable files * feat: migration creation and versioning for creator * feat: review's fixes and clearing redundancy * feat: dependencies version rollback --------- Signed-off-by: Kiril Hatalski <KirylHatalski@users.noreply.github.com> Co-authored-by: NŠA development <nsa.github@gmail.com>
- Loading branch information
1 parent
c6361a8
commit afd2acc
Showing
10 changed files
with
101 additions
and
19 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,41 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace oat\qtiItemPci\migrations; | ||
|
||
use Doctrine\DBAL\Schema\Schema; | ||
use oat\tao\scripts\tools\migrations\AbstractMigration; | ||
use Doctrine\Migrations\Exception\IrreversibleMigration; | ||
use oat\qtiItemPci\scripts\install\RegisterPciMathEntry; | ||
|
||
/** | ||
* Auto-generated Migration: Please modify to your needs! | ||
* | ||
* phpcs:disable Squiz.Classes.ValidClassName | ||
*/ | ||
final class Version202310111248461465_qtiItemPci extends AbstractMigration | ||
{ | ||
public function getDescription(): string | ||
{ | ||
return 'Update the Math Entry PCI with new math symbols'; | ||
} | ||
|
||
public function up(Schema $schema): void | ||
{ | ||
$this->addReport( | ||
$this->propagate( | ||
new RegisterPciMathEntry() | ||
)( | ||
['2.6.0'] | ||
) | ||
); | ||
} | ||
|
||
public function down(Schema $schema): void | ||
{ | ||
throw new IrreversibleMigration( | ||
'In order to undo this migration, please revert the client-side changes and run ' . RegisterPciMathEntry::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
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
2 changes: 1 addition & 1 deletion
2
views/js/pciCreator/ims/mathEntryInteraction/imsPciCreator.min.js
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
views/js/pciCreator/ims/mathEntryInteraction/imsPciCreator.min.js.map
Large diffs are not rendered by default.
Oops, something went wrong.
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
2 changes: 1 addition & 1 deletion
2
views/js/pciCreator/ims/mathEntryInteraction/runtime/mathEntryInteraction.min.js
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
views/js/pciCreator/ims/mathEntryInteraction/runtime/mathEntryInteraction.min.js.map
Large diffs are not rendered by default.
Oops, something went wrong.