Skip to content

Commit

Permalink
Update SchemaHookHandler.php
Browse files Browse the repository at this point in the history
  • Loading branch information
FO-nTTaX authored Apr 16, 2024
1 parent 1e16d0a commit c999d7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Hooks/SchemaHookHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ public function onLoadExtensionSchemaUpdates( $updater ) {

if ( !$db->tableExists( 'resourceloaderarticles', __METHOD__ ) ) {
$updater->output( "Creating resourceloaderarticles table resourceloaderarticles ...\n" );
$db->sourceFile( __DIR__ . '/../sql/resourceloaderarticles.sql' );
$db->sourceFile( __DIR__ . '/../../sql/resourceloaderarticles.sql' );
$updater->output( "done.\n" );
} elseif ( !$db->fieldExists( 'resourceloaderarticles', 'rla_priority', __METHOD__ ) ) {
$updater->output( "Adding `rla_priority` to resourceloaderarticles table resourceloaderarticles ...\n" );
$db->sourceFile( __DIR__ . '/../sql/resourceloaderarticlesPriorityMigration.sql' );
$db->sourceFile( __DIR__ . '/../../sql/resourceloaderarticlesPriorityMigration.sql' );
$updater->output( "done.\n" );
} else {
$updater->output( "...resourceloaderarticles table already exists.\n" );
Expand Down

0 comments on commit c999d7b

Please sign in to comment.