Soeren.oldag has submitted this change and it was merged.

Change subject: Fixed table constant.
......................................................................


Fixed table constant.

Change-Id: I4e9a784da9006913b36c6d2e8654775e75af2f5c
---
M WikibaseQuality.php
M WikibaseQualityHooks.php
2 files changed, 2 insertions(+), 7 deletions(-)

Approvals:
  Soeren.oldag: Verified; Looks good to me, approved



diff --git a/WikibaseQuality.php b/WikibaseQuality.php
index 0ec297e..f368a47 100755
--- a/WikibaseQuality.php
+++ b/WikibaseQuality.php
@@ -30,8 +30,4 @@
                'localBasePath' => __DIR__,
                'remoteExtPath' => 'WikibaseQuality'
        );
-} );
-
-// Define database table names
-define( 'VIOLATION_TABLE', 'wbq_violations' );
-define( 'EVALUATION_TABLE', 'wbq_evaluation' );
\ No newline at end of file
+} );
\ No newline at end of file
diff --git a/WikibaseQualityHooks.php b/WikibaseQualityHooks.php
index 99d76f4..8bff337 100755
--- a/WikibaseQualityHooks.php
+++ b/WikibaseQualityHooks.php
@@ -8,8 +8,7 @@
         * @return bool
         */
        public static function onCreateSchema( DatabaseUpdater $updater ) {
-               $updater->addExtensionTable( VIOLATION_TABLE, __DIR__ . 
'/sql/create_wbq_violations.sql' );
-               $updater->addExtensionTable( EVALUATION_TABLE, __DIR__ . 
'/sql/create_wbq_evaluation.sql' );
+               $updater->addExtensionTable( 'wbq_violations', __DIR__ . 
'/sql/create_wbq_violations.sql' );
                return true;
        }
 

-- 
To view, visit https://gerrit.wikimedia.org/r/218849
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I4e9a784da9006913b36c6d2e8654775e75af2f5c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/WikidataQuality
Gerrit-Branch: v1
Gerrit-Owner: Soeren.oldag <[email protected]>
Gerrit-Reviewer: Soeren.oldag <[email protected]>

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

Reply via email to