Matthias Mullie has uploaded a new change for review.

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


Change subject: Start using rc_source
......................................................................

Start using rc_source

Change-Id: If0b9c745bbc692990e64dc28ec171cbc75a27fba
---
M Hooks.php
A db_patches/patch-rc_source.sql
2 files changed, 5 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Flow 
refs/changes/69/93969/1

diff --git a/Hooks.php b/Hooks.php
index fd99eb3..ad14472 100644
--- a/Hooks.php
+++ b/Hooks.php
@@ -43,6 +43,7 @@
                $updater->addExtensionIndex( 'flow_workflow', 
'flow_workflow_lookup', "$dir/db_patches/patch-workflow_lookup_idx.sql" );
                $updater->addExtensionIndex( 'flow_topic_list', 
'flow_topic_list_topic_id', "$dir/db_patches/patch-topic_list_topic_id_idx.sql" 
);
                $updater->modifyExtensionField( 'flow_revision', 
'rev_change_type', "$dir/db_patches/patch-rev_change_type_update.sql" );
+               $updater->modifyExtensionField( 'recentchanges', 'rc_source', 
"$dir/db_patches/patch-rc_source.sql" );
 
                require_once 
__DIR__.'/maintenance/FlowInsertDefaultDefinitions.php';
                $updater->addPostDatabaseUpdateMaintenance( 
'FlowInsertDefaultDefinitions' );
diff --git a/db_patches/patch-rc_source.sql b/db_patches/patch-rc_source.sql
new file mode 100644
index 0000000..0f9c2de
--- /dev/null
+++ b/db_patches/patch-rc_source.sql
@@ -0,0 +1,4 @@
+-- Updates Flow's recentchanges entries to new rc_source column
+-- values for rc_source & rc_type are respectively RC_FLOW &
+-- Flow\Data\RecentChanges::SRC_FLOW, as defined in Flow.php
+UPDATE /*_*/recentchanges SET rc_source = "flow" WHERE rc_type = 142;

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: If0b9c745bbc692990e64dc28ec171cbc75a27fba
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: master
Gerrit-Owner: Matthias Mullie <[email protected]>

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

Reply via email to