2 -- Track template inclusions.
4 CREATE TABLE /*$wgDBprefix*/templatelinks (
5 -- Key to the page_id of the page containing the link.
6 tl_from int unsigned NOT NULL default '0',
8 -- Key to page_namespace/page_title of the target page.
9 -- The target page may or may not exist, and due to renames
10 -- and deletions may refer to different page records as time
12 tl_namespace int NOT NULL default '0',
13 tl_title varchar(255) binary NOT NULL default '',
15 UNIQUE KEY tl_from(tl_from,tl_namespace,tl_title),
16 KEY (tl_namespace,tl_title)
17 ) /*$wgDBTableOptions*/;