Skip to content

Commit

Permalink
fix: Neo4j - impossible to save or author passage due to language pro…
Browse files Browse the repository at this point in the history
…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
mccar and Makar Sichevoi authored Nov 29, 2023
1 parent d543f29 commit e3f8f53
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
33 changes: 33 additions & 0 deletions migrations/Version202311171021031888_taoMediaManager.php
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');
}
}
2 changes: 1 addition & 1 deletion model/ontology/taomedia.rdf
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<rdfs:domain rdf:resource="http://www.tao.lu/Ontologies/TAOMedia.rdf#Media"/>
<rdfs:range rdf:resource="http://www.tao.lu/Ontologies/TAO.rdf#Languages"/>
<widget:widget rdf:resource="http://www.tao.lu/datatypes/WidgetDefinitions.rdf#ComboBox"/>
<generis:is_language_dependent rdf:resource="http://www.tao.lu/Ontologies/generis.rdf#True"/>
<generis:is_language_dependent rdf:resource="http://www.tao.lu/Ontologies/generis.rdf#False"/>
</rdf:Description>

<!-- Management Role -->
Expand Down

0 comments on commit e3f8f53

Please sign in to comment.