jenkins-bot has submitted this change and it was merged.
Change subject: (bug 49453) Fix sql table creation failure
......................................................................
(bug 49453) Fix sql table creation failure
Move the ProofreadPage.sql schema to includes/index/ProofreadIndex.sql:
* this is more logical since it creates a table for the index pages
* this fixes bug 49453 since the schema is now located in the right folder
Change-Id: I2921e6408940dcf23b3f148a7034cd76304d3610
---
R includes/index/ProofreadIndex.sql
M includes/index/ProofreadIndexDbConnector.php
2 files changed, 4 insertions(+), 4 deletions(-)
Approvals:
Ori.livneh: Looks good to me, approved
jenkins-bot: Verified
diff --git a/ProofreadPage.sql b/includes/index/ProofreadIndex.sql
similarity index 100%
rename from ProofreadPage.sql
rename to includes/index/ProofreadIndex.sql
diff --git a/includes/index/ProofreadIndexDbConnector.php
b/includes/index/ProofreadIndexDbConnector.php
index 7453102..d179684 100644
--- a/includes/index/ProofreadIndexDbConnector.php
+++ b/includes/index/ProofreadIndexDbConnector.php
@@ -7,13 +7,13 @@
* @return bool
*/
public static function onLoadExtensionSchemaUpdates( $updater = null ) {
- $base = dirname( __FILE__ );
+ $base = __DIR__;
if ( $updater === null ) {
global $wgExtNewTables;
- $wgExtNewTables[] = array( 'pr_index',
"$base/ProofreadPage.sql" );
+ $wgExtNewTables[] = array( 'pr_index',
"$base/ProofreadIndex.sql" );
} else {
$updater->addExtensionUpdate( array( 'addTable',
'pr_index',
- "$base/ProofreadPage.sql", true ) );
+ "$base/ProofreadIndex.sql", true ) );
}
return true;
}
@@ -37,4 +37,4 @@
);
return $result;
}
-}
\ No newline at end of file
+}
--
To view, visit https://gerrit.wikimedia.org/r/68120
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I2921e6408940dcf23b3f148a7034cd76304d3610
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ProofreadPage
Gerrit-Branch: master
Gerrit-Owner: Zaran <[email protected]>
Gerrit-Reviewer: Ori.livneh <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits