Split down patch-comment-table.sql
[lhc/web/wiklou.git] / maintenance / archives / patch-templatelinks.sql
1 --
2 -- Track template inclusions.
3 --
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',
7
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
11 -- goes by.
12 tl_namespace int NOT NULL default '0',
13 tl_title varchar(255) binary NOT NULL default '',
14
15 UNIQUE KEY tl_from(tl_from,tl_namespace,tl_title),
16 KEY (tl_namespace,tl_title)
17 ) /*$wgDBTableOptions*/;
18