Last modified: 2014-04-16 01:54:33 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T65917, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 63917 - Create new links tables for Flow
Create new links tables for Flow
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: High normal (vote)
: ---
Assigned To: Sean Pringle
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-04-14 22:36 UTC by Erik Bernhardson
Modified: 2014-04-16 01:54 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Erik Bernhardson 2014-04-14 22:36:36 UTC
Short description:

Create two new tables and related indexes for Flow to support queries about what links are contained in its stored content.

Which wikis are affected:

flowdb on the non-wiki extension1db

Which tables:

flow_wiki_ref, flow_ext_ref

What is the change to those tables:

CREATE TABLE /*_*/flow_wiki_ref (
        ref_src_object_id binary(11) not null,
        ref_src_object_type varbinary(32) not null,
        ref_src_workflow_id binary(11) not null,
        ref_src_namespace int not null,
        ref_src_title varbinary(255) not null,
        ref_target_namespace int not null,
        ref_target_title varbinary(255) not null,
        ref_type varbinary(16) not null
);

CREATE UNIQUE INDEX /*i*/flow_wiki_ref_pk ON /*_*/flow_wiki_ref
        (ref_src_namespace, ref_src_title, ref_type, ref_target_namespace, ref_target_title, ref_src_object_type, ref_src_object_id);

CREATE UNIQUE INDEX /*i*/flow_wiki_ref_revision ON /*_*/flow_wiki_ref
        (ref_src_namespace, ref_src_title, ref_src_object_type, ref_src_object_id, ref_type, ref_target_namespace, ref_target_title);

CREATE TABLE /*_*/flow_ext_ref (
        ref_src_object_id binary(11) not null,
        ref_src_object_type varbinary(32) not null,
        ref_src_workflow_id binary(11) not null,
        ref_src_namespace int not null,
        ref_src_title varbinary(255) not null,
        ref_target varbinary(255) not null,
        ref_type varbinary(16) not null
);

CREATE UNIQUE INDEX /*i*/flow_ext_ref_pk ON /*_*/flow_ext_ref
        (ref_src_namespace, ref_src_title, ref_type, ref_target, ref_src_object_type, ref_src_object_id);

CREATE UNIQUE INDEX /*i*/flow_ext_ref_revision ON /*_*/flow_ext_ref
        (ref_src_namespace, ref_src_title, ref_src_object_type, ref_src_object_id, ref_type, ref_target);


Links to gerrit changes and/or other related bug reports.

https://gerrit.wikimedia.org/r/#/c/110090
Comment 1 Sean Pringle 2014-04-16 01:54:33 UTC
Done.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links