Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4103163
patch-templatelinks-target_id.sql
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
patch-templatelinks-target_id.sql
View Options
-- This file is automatically generated using maintenance/generateSchemaChangeSql.php.
-- Source: maintenance/abstractSchemaChanges/patch-templatelinks-target_id.json
-- Do not modify this file directly.
-- See https://www.mediawiki.org/wiki/Manual:Schema_changes
DROP
INDEX
tl_namespace
;
DROP
INDEX
tl_backlinks_namespace
;
CREATE
TEMPORARY
TABLE
/*_*/
__temp__templatelinks
AS
SELECT
tl_from
,
tl_namespace
,
tl_title
,
tl_from_namespace
FROM
/*_*/
templatelinks
;
DROP
TABLE
/*_*/
templatelinks
;
CREATE
TABLE
/*_*/
templatelinks
(
tl_from
INTEGER
UNSIGNED
DEFAULT
0
NOT
NULL
,
tl_namespace
INTEGER
DEFAULT
0
NOT
NULL
,
tl_title
BLOB
DEFAULT
''
NOT
NULL
,
tl_from_namespace
INTEGER
DEFAULT
0
NOT
NULL
,
tl_target_id
BIGINT
UNSIGNED
DEFAULT
NULL
,
PRIMARY
KEY
(
tl_from
,
tl_namespace
,
tl_title
)
);
INSERT
INTO
/*_*/
templatelinks
(
tl_from
,
tl_namespace
,
tl_title
,
tl_from_namespace
)
SELECT
tl_from
,
tl_namespace
,
tl_title
,
tl_from_namespace
FROM
/*_*/
__temp__templatelinks
;
DROP
TABLE
/*_*/
__temp__templatelinks
;
CREATE
INDEX
tl_namespace
ON
/*_*/
templatelinks
(
tl_namespace
,
tl_title
,
tl_from
);
CREATE
INDEX
tl_backlinks_namespace
ON
/*_*/
templatelinks
(
tl_from_namespace
,
tl_namespace
,
tl_title
,
tl_from
);
CREATE
INDEX
tl_target_id
ON
/*_*/
templatelinks
(
tl_target_id
,
tl_from
);
CREATE
INDEX
tl_backlinks_namespace_target_id
ON
/*_*/
templatelinks
(
tl_from_namespace
,
tl_target_id
,
tl_from
);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Aug 18, 17:48 (3 w, 3 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
16/af/641cdd0f6f247a07398600cd76bd
Default Alt Text
patch-templatelinks-target_id.sql (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment