1 -- $Id: mysql.sql,v 1.6 2004-01-28 16:49:01 rurban Exp $
3 drop table if exists page;
6 pagename VARCHAR(100) BINARY NOT NULL,
7 hits INT NOT NULL DEFAULT 0,
8 pagedata MEDIUMTEXT NOT NULL DEFAULT '',
13 drop table if exists version;
14 CREATE TABLE version (
18 minor_edit TINYINT DEFAULT 0,
19 content MEDIUMTEXT NOT NULL DEFAULT '',
20 versiondata MEDIUMTEXT NOT NULL DEFAULT '',
21 PRIMARY KEY (id,version),
25 drop table if exists recent;
34 drop table if exists nonempty;
35 CREATE TABLE nonempty (
40 drop table if exists link;
42 linkfrom INT NOT NULL,
48 drop table if exists session;
49 CREATE TABLE session (
50 sess_id VARCHAR(32) NOT NULL DEFAULT '',
51 sess_data BLOB NOT NULL,
52 sess_date INT UNSIGNED NOT NULL,
56 -- Optional DB Auth and Prefs
57 -- For these tables below the default table prefix must be used
58 -- in the DBAuthParam SQL statements also.
60 -- Don't know if you should auth against pref table also.
61 -- the password is stored there also.
62 drop table if exists pref;
64 userid CHAR(48) BINARY NOT NULL UNIQUE,
65 prefs TEXT NULL DEFAULT '',
69 drop table if exists user;
71 userid CHAR(48) BINARY NOT NULL UNIQUE,
72 passwd CHAR(48) BINARY DEFAULT '',
73 -- groupname CHAR(48) BINARY DEFAULT 'users',
77 drop table if exists member;
79 userid CHAR(48) BINARY NOT NULL,
80 groupname CHAR(48) BINARY NOT NULL DEFAULT 'users',