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"
  • Loading branch information
Makar Sichevoi committed Nov 17, 2023
1 parent d543f29 commit 6d64da9
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
32 changes: 32 additions & 0 deletions migrations/Version202311171021031888_taoMediaManager.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?php

declare(strict_types=1);

namespace oat\taoMediaManager\migrations;

use Doctrine\DBAL\Schema\Schema;
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
{
// do nothing
}
}
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 6d64da9

Please sign in to comment.