Skip to content

Commit

Permalink
changed upgrade script to also add parent_id to xerte db.
Browse files Browse the repository at this point in the history
  • Loading branch information
TimoBoer committed Jan 26, 2023
1 parent 43eb525 commit 54dca20
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion upgrade.php
Expand Up @@ -1312,6 +1312,9 @@ function upgrade_36(){
$message = "Adding parent_id column to oai_education - ok ? " . ($ok ? 'true' : 'false') . "<br>";
$ok = _upgrade_db_query("alter table oai_categories add column parent_id int(11)");
$message .= "Adding parent_id column to oai_categories - ok ? " . ($ok ? 'true' : 'false') . "<br>";

$ok = _upgrade_db_query("alter table educationlevel add column parent_id int(11)");
$message .= "Adding parent_id column to educationlevel - ok ? " . ($ok ? 'true' : 'false') . "<br>";
$ok = _upgrade_db_query("alter table syndicationcategories add column parent_id int(11)");
$message .= "Adding parent_id column to syndicationcategories - ok ? " . ($ok ? 'true' : 'false') . "<br>";
return $message;
}

0 comments on commit 54dca20

Please sign in to comment.