rdbms: drop inappropriate and poorly documented "DatabaseOraclePostInit" hook
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 10 Apr 2019 01:46:47 +0000 (18:46 -0700)
committerKrinkle <krinklemail@gmail.com>
Fri, 12 Apr 2019 14:41:44 +0000 (14:41 +0000)
Change-Id: I3152e80d99b040b7918927e6c2a215cab59a9b10

RELEASE-NOTES-1.34
docs/hooks.txt
includes/db/DatabaseOracle.php

index 161713b..ba4ac51 100644 (file)
@@ -83,7 +83,7 @@ because of Phabricator reports.
   configuration changes from after they were created, so you must reset
   services after any configuration change. Even if your code works now, it is
   likely to break in future versions as more code is moved to services.
   configuration changes from after they were created, so you must reset
   services after any configuration change. Even if your code works now, it is
   likely to break in future versions as more code is moved to services.
-* 
+* The ill-defined "DatabaseOraclePostInit" hook has been removed.
 
 === Deprecations in 1.34 ===
 * The MWNamespace class is deprecated. Use MediaWikiServices::getNamespaceInfo.
 
 === Deprecations in 1.34 ===
 * The MWNamespace class is deprecated. Use MediaWikiServices::getNamespaceInfo.
index d3d04ba..b2f1e81 100644 (file)
@@ -1193,9 +1193,6 @@ a custom editor, e.g. for a special namespace, etc.
 $article: Article being edited
 $user: User performing the edit
 
 $article: Article being edited
 $user: User performing the edit
 
-'DatabaseOraclePostInit': Called after initialising an Oracle database
-$db: the DatabaseOracle object
-
 'DeletedContribsPager::reallyDoQuery': Called before really executing the query
 for Special:DeletedContributions
 Similar to ContribsPager::reallyDoQuery
 'DeletedContribsPager::reallyDoQuery': Called before really executing the query
 for Special:DeletedContributions
 Similar to ContribsPager::reallyDoQuery
index d6e1df4..dedaf21 100644 (file)
@@ -64,7 +64,6 @@ class DatabaseOracle extends Database {
                $this->keywordTableMap = $params['keywordTableMap'] ?? [];
                $params['tablePrefix'] = strtoupper( $params['tablePrefix'] );
                parent::__construct( $params );
                $this->keywordTableMap = $params['keywordTableMap'] ?? [];
                $params['tablePrefix'] = strtoupper( $params['tablePrefix'] );
                parent::__construct( $params );
-               Hooks::run( 'DatabaseOraclePostInit', [ $this ] );
        }
 
        function __destruct() {
        }
 
        function __destruct() {
@@ -650,7 +649,7 @@ class DatabaseOracle extends Database {
         * Return sequence_name if table has a sequence
         *
         * @param string $table
         * Return sequence_name if table has a sequence
         *
         * @param string $table
-        * @return bool
+        * @return string[]|bool
         */
        private function getSequenceData( $table ) {
                if ( $this->sequenceData == null ) {
         */
        private function getSequenceData( $table ) {
                if ( $this->sequenceData == null ) {