Zaran has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/68120


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(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ProofreadPage 
refs/changes/20/68120/1

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: newchange
Gerrit-Change-Id: I2921e6408940dcf23b3f148a7034cd76304d3610
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ProofreadPage
Gerrit-Branch: master
Gerrit-Owner: Zaran <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to