-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Neo4j - impossible to save or author passage due to language pro…
…perty erased when "Save" button is clicked in "Edit Passage Properties" (#494) * fix: Neo4j - impossible to save or author passage due to language property erased when "Save" button is clicked in "Edit Passage Properties" --------- Co-authored-by: Makar Sichevoi <[email protected]>
- Loading branch information
Showing
2 changed files
with
34 additions
and
1 deletion.
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,33 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace oat\taoMediaManager\migrations; | ||
|
||
use Doctrine\DBAL\Schema\Schema; | ||
use Doctrine\Migrations\Exception\IrreversibleMigration; | ||
use oat\tao\scripts\tools\migrations\AbstractMigration; | ||
use oat\tao\scripts\update\OntologyUpdater; | ||
|
||
/** | ||
* Auto-generated Migration: Please modify to your needs! | ||
* | ||
* phpcs:disable Squiz.Classes.ValidClassName | ||
*/ | ||
final class Version202311171021031888_taoMediaManager extends AbstractMigration | ||
{ | ||
public function getDescription(): string | ||
{ | ||
return 'Changed http://www.tao.lu/Ontologies/TAOMedia.rdf#Language is_language_dependent to False'; | ||
} | ||
|
||
public function up(Schema $schema): void | ||
{ | ||
OntologyUpdater::syncModels(); | ||
} | ||
|
||
public function down(Schema $schema): void | ||
{ | ||
throw new IrreversibleMigration('Reverting this migration does not make sense'); | ||
} | ||
} |
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