tables.sql
来自「php 开发的内容管理系统」· SQL 代码 · 共 999 行 · 第 1/3 页
SQL
999 行
oi_user_text varchar(255) binary NOT NULL default '', oi_timestamp char(14) binary NOT NULL default '', INDEX oi_name (oi_name(10))) TYPE=InnoDB;---- Record of deleted file data--CREATE TABLE /*$wgDBprefix*/filearchive ( -- Unique row id fa_id int not null auto_increment, -- Original base filename; key to image.img_name, page.page_title, etc fa_name varchar(255) binary NOT NULL default '', -- Filename of archived file, if an old revision fa_archive_name varchar(255) binary default '', -- Which storage bin (directory tree or object store) the file data -- is stored in. Should be 'deleted' for files that have been deleted; -- any other bin is not yet in use. fa_storage_group varchar(16), -- SHA-1 of the file contents plus extension, used as a key for storage. -- eg 8f8a562add37052a1848ff7771a2c515db94baa9.jpg -- -- If NULL, the file was missing at deletion time or has been purged -- from the archival storage. fa_storage_key varchar(64) binary default '', -- Deletion information, if this file is deleted. fa_deleted_user int, fa_deleted_timestamp char(14) binary default '', fa_deleted_reason text, -- Duped fields from image fa_size int(8) unsigned default '0', fa_width int(5) default '0', fa_height int(5) default '0', fa_metadata mediumblob, fa_bits int(3) default '0', fa_media_type ENUM("UNKNOWN", "BITMAP", "DRAWING", "AUDIO", "VIDEO", "MULTIMEDIA", "OFFICE", "TEXT", "EXECUTABLE", "ARCHIVE") default NULL, fa_major_mime ENUM("unknown", "application", "audio", "image", "text", "video", "message", "model", "multipart") default "unknown", fa_minor_mime varchar(32) default "unknown", fa_description tinyblob default '', fa_user int(5) unsigned default '0', fa_user_text varchar(255) binary default '', fa_timestamp char(14) binary default '', PRIMARY KEY (fa_id), INDEX (fa_name, fa_timestamp), -- pick out by image name INDEX (fa_storage_group, fa_storage_key), -- pick out dupe files INDEX (fa_deleted_timestamp), -- sort by deletion time INDEX (fa_deleted_user) -- sort by deleter) TYPE=InnoDB;---- Primarily a summary table for Special:Recentchanges,-- this table contains some additional info on edits from-- the last few days, see Article::editUpdates()--CREATE TABLE /*$wgDBprefix*/recentchanges ( rc_id int(8) NOT NULL auto_increment, rc_timestamp varchar(14) binary NOT NULL default '', rc_cur_time varchar(14) binary NOT NULL default '', -- As in revision rc_user int(10) unsigned NOT NULL default '0', rc_user_text varchar(255) binary NOT NULL default '', -- When pages are renamed, their RC entries do _not_ change. rc_namespace int NOT NULL default '0', rc_title varchar(255) binary NOT NULL default '', -- as in revision... rc_comment varchar(255) binary NOT NULL default '', rc_minor tinyint(3) unsigned NOT NULL default '0', -- Edits by user accounts with the 'bot' rights key are -- marked with a 1 here, and will be hidden from the -- default view. rc_bot tinyint(3) unsigned NOT NULL default '0', rc_new tinyint(3) unsigned NOT NULL default '0', -- Key to page_id (was cur_id prior to 1.5). -- This will keep links working after moves while -- retaining the at-the-time name in the changes list. rc_cur_id int(10) unsigned NOT NULL default '0', -- rev_id of the given revision rc_this_oldid int(10) unsigned NOT NULL default '0', -- rev_id of the prior revision, for generating diff links. rc_last_oldid int(10) unsigned NOT NULL default '0', -- These may no longer be used, with the new move log. rc_type tinyint(3) unsigned NOT NULL default '0', rc_moved_to_ns tinyint(3) unsigned NOT NULL default '0', rc_moved_to_title varchar(255) binary NOT NULL default '', -- If the Recent Changes Patrol option is enabled, -- users may mark edits as having been reviewed to -- remove a warning flag on the RC list. -- A value of 1 indicates the page has been reviewed. rc_patrolled tinyint(3) unsigned NOT NULL default '0', -- Recorded IP address the edit was made from, if the -- $wgPutIPinRC option is enabled. rc_ip char(15) NOT NULL default '', PRIMARY KEY rc_id (rc_id), INDEX rc_timestamp (rc_timestamp), INDEX rc_namespace_title (rc_namespace, rc_title), INDEX rc_cur_id (rc_cur_id), INDEX new_name_timestamp(rc_new,rc_namespace,rc_timestamp), INDEX rc_ip (rc_ip)) TYPE=InnoDB;CREATE TABLE /*$wgDBprefix*/watchlist ( -- Key to user.user_id wl_user int(5) unsigned NOT NULL, -- Key to page_namespace/page_title -- Note that users may watch pages which do not exist yet, -- or existed in the past but have been deleted. wl_namespace int NOT NULL default '0', wl_title varchar(255) binary NOT NULL default '', -- Timestamp when user was last sent a notification e-mail; -- cleared when the user visits the page. wl_notificationtimestamp varchar(14) binary, UNIQUE KEY (wl_user, wl_namespace, wl_title), KEY namespace_title (wl_namespace,wl_title)) TYPE=InnoDB;---- Used by the math module to keep track-- of previously-rendered items.--CREATE TABLE /*$wgDBprefix*/math ( -- Binary MD5 hash of the latex fragment, used as an identifier key. math_inputhash varchar(16) NOT NULL, -- Not sure what this is, exactly... math_outputhash varchar(16) NOT NULL, -- texvc reports how well it thinks the HTML conversion worked; -- if it's a low level the PNG rendering may be preferred. math_html_conservativeness tinyint(1) NOT NULL, -- HTML output from texvc, if any math_html text, -- MathML output from texvc, if any math_mathml text, UNIQUE KEY math_inputhash (math_inputhash)) TYPE=InnoDB;---- When using the default MySQL search backend, page titles-- and text are munged to strip markup, do Unicode case folding,-- and prepare the result for MySQL's fulltext index.---- This table must be MyISAM; InnoDB does not support the needed-- fulltext index.--CREATE TABLE /*$wgDBprefix*/searchindex ( -- Key to page_id si_page int(8) unsigned NOT NULL, -- Munged version of title si_title varchar(255) NOT NULL default '', -- Munged version of body text si_text mediumtext NOT NULL default '', UNIQUE KEY (si_page), FULLTEXT si_title (si_title), FULLTEXT si_text (si_text)) TYPE=MyISAM;---- Recognized interwiki link prefixes--CREATE TABLE /*$wgDBprefix*/interwiki ( -- The interwiki prefix, (e.g. "Meatball", or the language prefix "de") iw_prefix char(32) NOT NULL, -- The URL of the wiki, with "$1" as a placeholder for an article name. -- Any spaces in the name will be transformed to underscores before -- insertion. iw_url char(127) NOT NULL, -- A boolean value indicating whether the wiki is in this project -- (used, for example, to detect redirect loops) iw_local BOOL NOT NULL, -- Boolean value indicating whether interwiki transclusions are allowed. iw_trans TINYINT(1) NOT NULL DEFAULT 0, UNIQUE KEY iw_prefix (iw_prefix)) TYPE=InnoDB;---- Used for caching expensive grouped queries--CREATE TABLE /*$wgDBprefix*/querycache ( -- A key name, generally the base name of of the special page. qc_type char(32) NOT NULL, -- Some sort of stored value. Sizes, counts... qc_value int(5) unsigned NOT NULL default '0', -- Target namespace+title qc_namespace int NOT NULL default '0', qc_title char(255) binary NOT NULL default '', KEY (qc_type,qc_value)) TYPE=InnoDB;---- For a few generic cache operations if not using Memcached--CREATE TABLE /*$wgDBprefix*/objectcache ( keyname char(255) binary not null default '', value mediumblob, exptime datetime, unique key (keyname), key (exptime)) TYPE=InnoDB;---- Cache of interwiki transclusion--CREATE TABLE /*$wgDBprefix*/transcache ( tc_url VARCHAR(255) NOT NULL, tc_contents TEXT, tc_time INT NOT NULL, UNIQUE INDEX tc_url_idx(tc_url)) TYPE=InnoDB;CREATE TABLE /*$wgDBprefix*/logging ( -- Symbolic keys for the general log type and the action type -- within the log. The output format will be controlled by the -- action field, but only the type controls categorization. log_type char(10) NOT NULL default '', log_action char(10) NOT NULL default '', -- Timestamp. Duh. log_timestamp char(14) NOT NULL default '19700101000000', -- The user who performed this action; key to user_id log_user int unsigned NOT NULL default 0, -- Key to the page affected. Where a user is the target, -- this will point to the user page. log_namespace int NOT NULL default 0, log_title varchar(255) binary NOT NULL default '', -- Freeform text. Interpreted as edit history comments. log_comment varchar(255) NOT NULL default '', -- LF separated list of miscellaneous parameters log_params blob NOT NULL default '', KEY type_time (log_type, log_timestamp), KEY user_time (log_user, log_timestamp), KEY page_time (log_namespace, log_title, log_timestamp), KEY times (log_timestamp)) TYPE=InnoDB;CREATE TABLE /*$wgDBprefix*/trackbacks ( tb_id integer AUTO_INCREMENT PRIMARY KEY, tb_page integer REFERENCES page(page_id) ON DELETE CASCADE, tb_title varchar(255) NOT NULL, tb_url varchar(255) NOT NULL, tb_ex text, tb_name varchar(255), INDEX (tb_page)) TYPE=InnoDB;-- Jobs performed by parallel apache threads or a command-line daemonCREATE TABLE /*$wgDBprefix*/job ( job_id int(9) unsigned NOT NULL auto_increment, -- Command name, currently only refreshLinks is defined job_cmd varchar(150) NOT NULL default '', -- Namespace and title to act on -- Should be 0 and '' if the command does not operate on a title job_namespace int NOT NULL, job_title varchar(150) binary NOT NULL, -- Any other parameters to the command -- Presently unused, format undefined job_params blob NOT NULL default '', PRIMARY KEY job_id (job_id), KEY (job_cmd, job_namespace, job_title)) TYPE=InnoDB;-- Details of updates to cached special pagesCREATE TABLE /*$wgDBprefix*/querycache_info ( -- Special page name -- Corresponds to a qc_type value qci_type varchar(32) NOT NULL default '', -- Timestamp of last update qci_timestamp char(14) NOT NULL default '19700101000000', UNIQUE KEY ( qci_type )) TYPE=InnoDB;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?