initial import from onelab svn codebase
[plewww.git] / database / database.4.0.mysql
1 -- $Id: database.4.0.mysql 144 2007-03-28 07:52:20Z thierry $
2
3 --
4 -- Table structure for table 'access'
5 --
6 CREATE TABLE access (
7   aid tinyint(10) NOT NULL auto_increment,
8   mask varchar(255) NOT NULL default '',
9   type varchar(255) NOT NULL default '',
10   status tinyint(2) NOT NULL default '0',
11   PRIMARY KEY (aid)
12 );
13
14 --
15 -- Table structure for table 'accesslog'
16 --
17
18 CREATE TABLE accesslog (
19   aid int(10) NOT NULL auto_increment,
20   sid varchar(32) NOT NULL default '',
21   title varchar(255) default NULL,
22   path varchar(255) default NULL,
23   url varchar(255) default NULL,
24   hostname varchar(128) default NULL,
25   uid int(10) unsigned default '0',
26   timer int(10) unsigned NOT NULL default '0',
27   timestamp int(11) unsigned NOT NULL default '0',
28   KEY accesslog_timestamp (timestamp),
29   PRIMARY KEY (aid)
30 );
31
32 --
33 -- Table structure for table 'aggregator_category'
34 --
35
36 CREATE TABLE aggregator_category (
37   cid int(10) NOT NULL auto_increment,
38   title varchar(255) NOT NULL default '',
39   description longtext NOT NULL,
40   block tinyint(2) NOT NULL default '0',
41   PRIMARY KEY (cid),
42   UNIQUE KEY title (title)
43 );
44
45 --
46 -- Table structure for table 'aggregator_category_feed'
47 --
48
49 CREATE TABLE aggregator_category_feed (
50   fid int(10) NOT NULL default '0',
51   cid int(10) NOT NULL default '0',
52   PRIMARY KEY (fid,cid)
53 );
54
55 --
56 -- Table structure for table 'aggregator_category_item'
57 --
58
59 CREATE TABLE aggregator_category_item (
60   iid int(10) NOT NULL default '0',
61   cid int(10) NOT NULL default '0',
62   PRIMARY KEY (iid,cid)
63 );
64
65 --
66 -- Table structure for table 'aggregator_feed'
67 --
68
69 CREATE TABLE aggregator_feed (
70   fid int(10) NOT NULL auto_increment,
71   title varchar(255) NOT NULL default '',
72   url varchar(255) NOT NULL default '',
73   refresh int(10) NOT NULL default '0',
74   checked int(10) NOT NULL default '0',
75   link varchar(255) NOT NULL default '',
76   description longtext NOT NULL,
77   image longtext NOT NULL,
78   etag varchar(255) NOT NULL default '',
79   modified int(10) NOT NULL default '0',
80   block tinyint(2) NOT NULL default '0',
81   PRIMARY KEY (fid),
82   UNIQUE KEY link (url),
83   UNIQUE KEY title (title)
84 );
85
86 --
87 -- Table structure for table 'aggregator_item'
88 --
89
90 CREATE TABLE aggregator_item (
91   iid int(10) NOT NULL auto_increment,
92   fid int(10) NOT NULL default '0',
93   title varchar(255) NOT NULL default '',
94   link varchar(255) NOT NULL default '',
95   author varchar(255) NOT NULL default '',
96   description longtext NOT NULL,
97   timestamp int(11) default NULL,
98   PRIMARY KEY (iid)
99 );
100
101 --
102 -- Table structure for table 'authmap'
103 --
104
105 CREATE TABLE authmap (
106   aid int(10) unsigned NOT NULL auto_increment,
107   uid int(10) NOT NULL default '0',
108   authname varchar(128) NOT NULL default '',
109   module varchar(128) NOT NULL default '',
110   PRIMARY KEY (aid),
111   UNIQUE KEY authname (authname)
112 );
113
114 --
115 -- Table structure for table 'blocks'
116 --
117
118 CREATE TABLE blocks (
119   module varchar(64) DEFAULT '' NOT NULL,
120   delta varchar(32) NOT NULL default '0',
121   theme varchar(255) NOT NULL default '',
122   status tinyint(2) DEFAULT '0' NOT NULL,
123   weight tinyint(1) DEFAULT '0' NOT NULL,
124   region varchar(64) DEFAULT 'left' NOT NULL,
125   custom tinyint(2) DEFAULT '0' NOT NULL,
126   throttle tinyint(1) DEFAULT '0' NOT NULL,
127   visibility tinyint(1) DEFAULT '0' NOT NULL,
128   pages text DEFAULT '' NOT NULL
129 );
130
131 --
132 -- Table structure for table 'book'
133 --
134
135 CREATE TABLE book (
136   vid int(10) unsigned NOT NULL default '0',
137   nid int(10) unsigned NOT NULL default '0',
138   parent int(10) NOT NULL default '0',
139   weight tinyint(3) NOT NULL default '0',
140   PRIMARY KEY (vid),
141   KEY nid (nid),
142   KEY parent (parent)
143 );
144
145 --
146 -- Table structure for table 'boxes'
147 --
148
149 CREATE TABLE boxes (
150   bid tinyint(4) NOT NULL auto_increment,
151   title varchar(64) NOT NULL default '',
152   body longtext,
153   info varchar(128) NOT NULL default '',
154   format int(4) NOT NULL default '0',
155   PRIMARY KEY (bid),
156   UNIQUE KEY info (info)
157 );
158
159 --
160 -- Table structure for table 'cache'
161 --
162
163 CREATE TABLE cache (
164   cid varchar(255) NOT NULL default '',
165   data longblob,
166   expire int(11) NOT NULL default '0',
167   created int(11) NOT NULL default '0',
168   headers text,
169   PRIMARY KEY (cid),
170   INDEX expire (expire)
171 );
172
173 --
174 -- Table structure for table 'comments'
175 --
176
177 CREATE TABLE comments (
178   cid int(10) NOT NULL auto_increment,
179   pid int(10) NOT NULL default '0',
180   nid int(10) NOT NULL default '0',
181   uid int(10) NOT NULL default '0',
182   subject varchar(64) NOT NULL default '',
183   comment longtext NOT NULL,
184   hostname varchar(128) NOT NULL default '',
185   timestamp int(11) NOT NULL default '0',
186   score mediumint(9) NOT NULL default '0',
187   status tinyint(3) unsigned NOT NULL default '0',
188   format int(4) NOT NULL default '0',
189   thread varchar(255) NOT NULL,
190   users longtext,
191   name varchar(60) default NULL,
192   mail varchar(64) default NULL,
193   homepage varchar(255) default NULL,
194   PRIMARY KEY (cid),
195   KEY lid (nid)
196 );
197
198 --
199 -- Table structre for table 'contact'
200 --
201
202 CREATE TABLE contact (
203   cid int(10) unsigned NOT NULL auto_increment,
204   category varchar(255) NOT NULL default '',
205   recipients longtext NOT NULL default '',
206   reply longtext NOT NULL default '',
207   weight tinyint(3) NOT NULL default '0',
208   selected tinyint(1) NOT NULL default '0',
209   PRIMARY KEY (cid),
210   UNIQUE KEY category (category)
211 );
212
213 --
214 -- Table structre for table 'node_comment_statistics'
215 --
216
217 CREATE TABLE node_comment_statistics (
218   nid int(10) unsigned NOT NULL auto_increment,
219   last_comment_timestamp int(11) NOT NULL default '0',
220   last_comment_name varchar(60) default NULL,
221   last_comment_uid int(10) NOT NULL default '0',
222   comment_count int(10) unsigned NOT NULL default '0',
223   PRIMARY KEY (nid),
224   KEY node_comment_timestamp (last_comment_timestamp)
225 );
226
227 --
228 -- Table structure for table 'client'
229 --
230
231 CREATE TABLE client (
232   cid int(10) unsigned NOT NULL auto_increment,
233   link varchar(255) NOT NULL default '',
234   name varchar(128) NOT NULL default '',
235   mail varchar(128) NOT NULL default '',
236   slogan longtext NOT NULL,
237   mission longtext NOT NULL,
238   users int(10) NOT NULL default '0',
239   nodes int(10) NOT NULL default '0',
240   version varchar(35) NOT NULL default'',
241   created int(11) NOT NULL default '0',
242   changed int(11) NOT NULL default '0',
243   PRIMARY KEY (cid)
244 );
245
246 --
247 -- Table structure for table 'client_system'
248 --
249
250 CREATE TABLE client_system (
251   cid int(10) NOT NULL default '0',
252   name varchar(255) NOT NULL default '',
253   type varchar(255) NOT NULL default '',
254   PRIMARY KEY (cid,name)
255 );
256
257 --
258 -- Table structure for table 'files'
259 --
260
261 CREATE TABLE files (
262   fid int(10) unsigned NOT NULL default 0,
263   nid int(10) unsigned NOT NULL default 0,
264   filename varchar(255) NOT NULL default '',
265   filepath varchar(255) NOT NULL default '',
266   filemime varchar(255) NOT NULL default '',
267   filesize int(10) unsigned NOT NULL default 0,
268   PRIMARY KEY (fid)
269 );
270
271 --
272 -- Table structure for table 'file_revisions'
273 --
274
275 CREATE TABLE file_revisions (
276   fid int(10) unsigned NOT NULL default 0,
277   vid int(10) unsigned NOT NULL default 0,
278   description varchar(255) NOT NULL default '',
279   list tinyint(1) unsigned NOT NULL default 0,
280   PRIMARY KEY (fid, vid)
281 );
282
283 --
284 -- Table structure for table 'filter_formats'
285 --
286
287 CREATE TABLE filter_formats (
288   format int(4) NOT NULL auto_increment,
289   name varchar(255) NOT NULL default '',
290   roles varchar(255) NOT NULL default '',
291   cache tinyint(2) NOT NULL default '0',
292   PRIMARY KEY (format),
293   UNIQUE KEY (name)
294 );
295
296 --
297 -- Table structure for table 'filters'
298 --
299
300 CREATE TABLE filters (
301   format int(4) NOT NULL default '0',
302   module varchar(64) NOT NULL default '',
303   delta tinyint(2) DEFAULT '0' NOT NULL,
304   weight tinyint(2) DEFAULT '0' NOT NULL,
305   INDEX (weight)
306 );
307
308 --
309 -- Table structure for table 'flood'
310 --
311
312 CREATE TABLE flood (
313   event varchar(64) NOT NULL default '',
314   hostname varchar(128) NOT NULL default '',
315   timestamp int(11) NOT NULL default '0'
316 );
317
318 --
319 -- Table structure for table 'forum'
320 --
321
322 CREATE TABLE forum (
323   nid int(10) unsigned NOT NULL default '0',
324   vid int(10) unsigned NOT NULL default '0',
325   tid int(10) unsigned NOT NULL default '0',
326   PRIMARY KEY (vid),
327   KEY nid (nid),
328   KEY tid (tid)
329 );
330
331 --
332 -- Table structure for table 'history'
333 --
334
335 CREATE TABLE history (
336   uid int(10) NOT NULL default '0',
337   nid int(10) NOT NULL default '0',
338   timestamp int(11) NOT NULL default '0',
339   PRIMARY KEY (uid,nid)
340 );
341
342 --
343 -- Table structure for table 'locales_meta'
344 --
345
346 CREATE TABLE locales_meta (
347   locale varchar(12) NOT NULL default '',
348   name varchar(64) NOT NULL default '',
349   enabled int(2) NOT NULL default '0',
350   isdefault int(2) NOT NULL default '0',
351   plurals int(1) NOT NULL default '0',
352   formula varchar(128) NOT NULL default '',
353   PRIMARY KEY (locale)
354 );
355
356 --
357 -- Table structure for table 'locales_source'
358 --
359
360 CREATE TABLE locales_source (
361   lid int(11) NOT NULL auto_increment,
362   location varchar(255) NOT NULL default '',
363   source blob NOT NULL,
364   PRIMARY KEY (lid)
365 );
366
367 --
368 -- Table structure for table 'locales_target'
369 --
370
371 CREATE TABLE locales_target (
372   lid int(11) NOT NULL default '0',
373   translation blob NOT NULL,
374   locale varchar(12) NOT NULL default '',
375   plid int(11) NOT NULL default '0',
376   plural int(1) NOT NULL default '0',
377   KEY lid (lid),
378   KEY lang (locale),
379   KEY plid (plid),
380   KEY plural (plural)
381 );
382
383 --
384 -- Table structure for table 'menu'
385 --
386
387 CREATE TABLE menu (
388   mid int(10) unsigned NOT NULL default '0',
389   pid int(10) unsigned NOT NULL default '0',
390   path varchar(255) NOT NULL default '',
391   title varchar(255) NOT NULL default '',
392   description varchar(255) NOT NULL default '',
393   weight tinyint(4) NOT NULL default '0',
394   type int(2) unsigned NOT NULL default '0',
395   PRIMARY KEY (mid)
396 );
397
398 --
399 -- Table structure for table 'node'
400 --
401
402 CREATE TABLE node (
403   nid int(10) unsigned NOT NULL auto_increment,
404   vid int(10) unsigned NOT NULL default '0',
405   type varchar(32) NOT NULL default '',
406   title varchar(128) NOT NULL default '',
407   uid int(10) NOT NULL default '0',
408   status int(4) NOT NULL default '1',
409   created int(11) NOT NULL default '0',
410   changed int(11) NOT NULL default '0',
411   comment int(2) NOT NULL default '0',
412   promote int(2) NOT NULL default '0',
413   moderate int(2) NOT NULL default '0',
414   sticky int(2) NOT NULL default '0',
415   PRIMARY KEY  (nid, vid),
416   UNIQUE KEY vid (vid),
417   KEY node_type (type(4)),
418   KEY node_title_type (title, type(4)),
419   KEY status (status),
420   KEY uid (uid),
421   KEY node_moderate (moderate),
422   KEY node_promote_status (promote, status),
423   KEY node_created (created),
424   KEY node_changed (changed),
425   KEY node_status_type (status, type, nid),
426   KEY nid (nid)
427 );
428
429 --
430 -- Table structure for table `node_access`
431 --
432
433 CREATE TABLE node_access (
434   nid int(10) unsigned NOT NULL default '0',
435   gid int(10) unsigned NOT NULL default '0',
436   realm varchar(255) NOT NULL default '',
437   grant_view tinyint(1) unsigned NOT NULL default '0',
438   grant_update tinyint(1) unsigned NOT NULL default '0',
439   grant_delete tinyint(1) unsigned NOT NULL default '0',
440   PRIMARY KEY (nid,gid,realm)
441 );
442
443 --
444 -- Table structure for table 'node_revisions'
445 --
446
447 CREATE TABLE node_revisions (
448   nid int(10) unsigned NOT NULL,
449   vid int(10) unsigned NOT NULL,
450   uid int(10) NOT NULL default '0',
451   title varchar(128) NOT NULL default '',
452   body longtext NOT NULL default '',
453   teaser longtext NOT NULL default '',
454   log longtext NOT NULL default '',
455   timestamp int(11) NOT NULL default '0',
456   format int(4) NOT NULL default '0',
457   PRIMARY KEY  (vid),
458   KEY nid (nid),
459   KEY uid (uid)
460 );
461
462 --
463 -- Table structure for table 'profile_fields'
464 --
465
466 CREATE TABLE profile_fields (
467   fid int(10) NOT NULL auto_increment,
468   title varchar(255) default NULL,
469   name varchar(128) default NULL,
470   explanation TEXT default NULL,
471   category varchar(255) default NULL,
472   page varchar(255) default NULL,
473   type varchar(128) default NULL,
474   weight tinyint(1) DEFAULT '0' NOT NULL,
475   required tinyint(1) DEFAULT '0' NOT NULL,
476   register tinyint(1) DEFAULT '0' NOT NULL,
477   visibility tinyint(1) DEFAULT '0' NOT NULL,
478   autocomplete tinyint(1) DEFAULT '0' NOT NULL,
479   options text,
480   KEY category (category),
481   UNIQUE KEY name (name),
482   PRIMARY KEY (fid)
483 );
484
485 --
486 -- Table structure for table 'profile_values'
487 --
488
489 CREATE TABLE profile_values (
490   fid int(10) unsigned default '0',
491   uid int(10) unsigned default '0',
492   value text,
493   KEY uid (uid),
494   KEY fid (fid)
495 );
496
497
498 --
499 -- Table structure for table 'url_alias'
500 --
501
502 CREATE TABLE url_alias (
503   pid int(10) unsigned NOT NULL auto_increment,
504   src varchar(128) NOT NULL default '',
505   dst varchar(128) NOT NULL default '',
506   PRIMARY KEY (pid),
507   UNIQUE KEY dst (dst),
508   KEY src (src)
509 );
510
511 --
512 -- Table structure for table 'permission'
513 --
514
515 CREATE TABLE permission (
516   rid int(10) unsigned NOT NULL default '0',
517   perm longtext,
518   tid int(10) unsigned NOT NULL default '0',
519   KEY rid (rid)
520 );
521
522 --
523 -- Table structure for table 'poll'
524 --
525
526 CREATE TABLE poll (
527   nid int(10) unsigned NOT NULL default '0',
528   runtime int(10) NOT NULL default '0',
529   active int(2) unsigned NOT NULL default '0',
530   PRIMARY KEY (nid)
531 );
532
533 --
534 -- Table structure for table 'poll_votes'
535 --
536
537 CREATE TABLE poll_votes (
538   nid int(10) unsigned NOT NULL,
539   uid int(10) unsigned NOT NULL default 0,
540   hostname varchar(128) NOT NULL default '',
541   INDEX (nid),
542   INDEX (uid),
543   INDEX (hostname)
544 );
545
546 --
547 -- Table structure for table 'poll_choices'
548 --
549
550 CREATE TABLE poll_choices (
551   chid int(10) unsigned NOT NULL auto_increment,
552   nid int(10) unsigned NOT NULL default '0',
553   chtext varchar(128) NOT NULL default '',
554   chvotes int(6) NOT NULL default '0',
555   chorder int(2) NOT NULL default '0',
556   PRIMARY KEY (chid),
557   KEY nid (nid)
558 );
559
560 --
561 -- Table structure for table 'role'
562 --
563
564 CREATE TABLE role (
565   rid int(10) unsigned NOT NULL auto_increment,
566   name varchar(32) NOT NULL default '',
567   PRIMARY KEY (rid),
568   UNIQUE KEY name (name)
569 );
570
571 --
572 -- Table structure for table 'search_dataset'
573 --
574 CREATE TABLE search_dataset (
575   sid int(10) unsigned NOT NULL default '0',
576   type varchar(16) default NULL,
577   data longtext NOT NULL,
578   KEY sid_type (sid, type)
579 );
580
581 --
582 -- Table structure for table 'search_index'
583 --
584
585 CREATE TABLE search_index (
586   word varchar(50) NOT NULL default '',
587   sid int(10) unsigned NOT NULL default '0',
588   type varchar(16) default NULL,
589   fromsid int(10) unsigned NOT NULL default '0',
590   fromtype varchar(16) default NULL,
591   score float default NULL,
592   KEY sid_type (sid, type),
593   KEY from_sid_type (fromsid, fromtype),
594   KEY word (word)
595 );
596
597 --
598 -- Table structure for table 'search_total'
599 --
600
601 CREATE TABLE search_total (
602   word varchar(50) NOT NULL default '',
603   count float default NULL,
604   PRIMARY KEY (word)
605 );
606
607 --
608 -- Table structure for table 'sessions'
609 --
610
611
612 CREATE TABLE sessions (
613   uid int(10) unsigned NOT NULL,
614   sid varchar(32) NOT NULL default '',
615   hostname varchar(128) NOT NULL default '',
616   timestamp int(11) NOT NULL default '0',
617   cache int(11) NOT NULL default '0',
618   session longtext,
619   KEY uid (uid),
620   PRIMARY KEY (sid),
621   KEY timestamp (timestamp)
622 );
623
624 --
625 -- Table structure for table 'sequences'
626 --
627
628 CREATE TABLE sequences (
629   name varchar(255) NOT NULL default '',
630   id int(10) unsigned NOT NULL default '0',
631   PRIMARY KEY (name)
632 );
633
634 --
635 -- Table structure for table 'node_counter'
636 --
637
638 CREATE TABLE node_counter (
639   nid int(10) NOT NULL default '0',
640   totalcount bigint(20) unsigned NOT NULL default '0',
641   daycount mediumint(8) unsigned NOT NULL default '0',
642   timestamp int(11) unsigned NOT NULL default '0',
643   PRIMARY KEY (nid),
644   KEY totalcount (totalcount),
645   KEY daycount (daycount),
646   KEY timestamp (timestamp)
647 );
648
649 --
650 -- Table structure for table 'system'
651 --
652
653 CREATE TABLE system (
654   filename varchar(255) NOT NULL default '',
655   name varchar(255) NOT NULL default '',
656   type varchar(255) NOT NULL default '',
657   description varchar(255) NOT NULL default '',
658   status int(2) NOT NULL default '0',
659   throttle tinyint(1) DEFAULT '0' NOT NULL,
660   bootstrap int(2) NOT NULL default '0',
661   schema_version smallint(3) NOT NULL default -1,
662   weight int(2) NOT NULL default '0',
663   PRIMARY KEY (filename),
664   KEY (weight)
665 );
666
667 --
668 -- Table structure for table 'term_data'
669 --
670
671 CREATE TABLE term_data (
672   tid int(10) unsigned NOT NULL auto_increment,
673   vid int(10) unsigned NOT NULL default '0',
674   name varchar(255) NOT NULL default '',
675   description longtext,
676   weight tinyint(4) NOT NULL default '0',
677   PRIMARY KEY (tid),
678   KEY vid (vid)
679 );
680
681 --
682 -- Table structure for table 'term_hierarchy'
683 --
684
685 CREATE TABLE term_hierarchy (
686   tid int(10) unsigned NOT NULL default '0',
687   parent int(10) unsigned NOT NULL default '0',
688   KEY tid (tid),
689   KEY parent (parent),
690   PRIMARY KEY (tid, parent)
691 );
692
693 --
694 -- Table structure for table 'term_node'
695 --
696
697 CREATE TABLE term_node (
698   nid int(10) unsigned NOT NULL default '0',
699   tid int(10) unsigned NOT NULL default '0',
700   KEY nid (nid),
701   KEY tid (tid),
702   PRIMARY KEY (tid,nid)
703 );
704
705 --
706 -- Table structure for table 'term_relation'
707 --
708
709 CREATE TABLE term_relation (
710   tid1 int(10) unsigned NOT NULL default '0',
711   tid2 int(10) unsigned NOT NULL default '0',
712   KEY tid1 (tid1),
713   KEY tid2 (tid2)
714 );
715
716 --
717 -- Table structure for table 'term_synonym'
718 --
719
720 CREATE TABLE term_synonym (
721   tid int(10) unsigned NOT NULL default '0',
722   name varchar(255) NOT NULL default '',
723   KEY tid (tid),
724   KEY name (name(3))
725 );
726
727 --
728 -- Table structure for table 'users'
729 --
730
731 CREATE TABLE users (
732   uid int(10) unsigned NOT NULL default '0',
733   name varchar(60) NOT NULL default '',
734   pass varchar(32) NOT NULL default '',
735   mail varchar(64) default '',
736   mode tinyint(1) NOT NULL default '0',
737   sort tinyint(1) default '0',
738   threshold tinyint(1) default '0',
739   theme varchar(255) NOT NULL default '',
740   signature varchar(255) NOT NULL default '',
741   created int(11) NOT NULL default '0',
742   access int(11) NOT NULL default '0',
743   login int(11) NOT NULL default '0',
744   status tinyint(4) NOT NULL default '0',
745   timezone varchar(8) default NULL,
746   language varchar(12) NOT NULL default '',
747   picture varchar(255) NOT NULL DEFAULT '',
748   init varchar(64) default '',
749   data longtext,
750   PRIMARY KEY (uid),
751   UNIQUE KEY name (name),
752   KEY access (access)
753 );
754
755 --
756 -- Table structure for table 'users_roles'
757 --
758
759 CREATE TABLE users_roles (
760   uid int(10) unsigned NOT NULL default '0',
761   rid int(10) unsigned NOT NULL default '0',
762   PRIMARY KEY (uid, rid)
763 );
764
765 --
766 -- Table structure for table 'variable'
767 --
768
769 CREATE TABLE variable (
770   name varchar(48) NOT NULL default '',
771   value longtext NOT NULL,
772   PRIMARY KEY (name)
773 );
774
775 --
776 -- Table structure for table 'vocabulary'
777 --
778
779 CREATE TABLE vocabulary (
780   vid int(10) unsigned NOT NULL auto_increment,
781   name varchar(255) NOT NULL default '',
782   description longtext,
783   help varchar(255) NOT NULL default '',
784   relations tinyint(3) unsigned NOT NULL default '0',
785   hierarchy tinyint(3) unsigned NOT NULL default '0',
786   multiple tinyint(3) unsigned NOT NULL default '0',
787   required tinyint(3) unsigned NOT NULL default '0',
788   tags tinyint(3) unsigned NOT NULL default '0',
789   module varchar(255) NOT NULL default '',
790   weight tinyint(4) NOT NULL default '0',
791   PRIMARY KEY (vid)
792 );
793
794 --
795 -- Table structure for table 'vocabulary_node_types'
796 --
797
798 CREATE TABLE vocabulary_node_types (
799   vid int(10) unsigned NOT NULL DEFAULT '0',
800   type varchar(32) NOT NULL DEFAULT '',
801   PRIMARY KEY (vid, type)
802 );
803
804 --
805 -- Table structure for table 'watchdog'
806 --
807
808 CREATE TABLE watchdog (
809   wid int(5) NOT NULL auto_increment,
810   uid int(10) NOT NULL default '0',
811   type varchar(16) NOT NULL default '',
812   message longtext NOT NULL,
813   severity tinyint(3) unsigned NOT NULL default '0',
814   link varchar(255) NOT NULL default '',
815   location varchar(128) NOT NULL default '',
816   referer varchar(128) NOT NULL default '',
817   hostname varchar(128) NOT NULL default '',
818   timestamp int(11) NOT NULL default '0',
819   PRIMARY KEY (wid)
820 );
821
822 --
823 -- Insert some default values
824 --
825
826 INSERT INTO system (filename, name, type, description, status, throttle, bootstrap, schema_version) VALUES ('modules/block.module', 'block', 'module', '', 1, 0, 0, 0);
827 INSERT INTO system (filename, name, type, description, status, throttle, bootstrap, schema_version) VALUES ('modules/comment.module', 'comment', 'module', '', 1, 0, 0, 0);
828 INSERT INTO system (filename, name, type, description, status, throttle, bootstrap, schema_version) VALUES ('modules/filter.module', 'filter', 'module', '', 1, 0, 0, 0);
829 INSERT INTO system (filename, name, type, description, status, throttle, bootstrap, schema_version) VALUES ('modules/help.module', 'help', 'module', '', 1, 0, 0, 0);
830 INSERT INTO system (filename, name, type, description, status, throttle, bootstrap, schema_version) VALUES ('modules/menu.module', 'menu', 'module', '', 1, 0, 0, 0);
831 INSERT INTO system (filename, name, type, description, status, throttle, bootstrap, schema_version) VALUES ('modules/node.module', 'node', 'module', '', 1, 0, 0, 0);
832 INSERT INTO system (filename, name, type, description, status, throttle, bootstrap, schema_version) VALUES ('modules/page.module', 'page', 'module', '', 1, 0, 0, 0);
833 INSERT INTO system (filename, name, type, description, status, throttle, bootstrap, schema_version) VALUES ('modules/story.module', 'story', 'module', '', 1, 0, 0, 0);
834 INSERT INTO system (filename, name, type, description, status, throttle, bootstrap, schema_version) VALUES ('modules/system.module', 'system', 'module', '', 1, 0, 0, 0);
835 INSERT INTO system (filename, name, type, description, status, throttle, bootstrap, schema_version) VALUES ('modules/taxonomy.module', 'taxonomy', 'module', '', 1, 0, 0, 0);
836 INSERT INTO system (filename, name, type, description, status, throttle, bootstrap, schema_version) VALUES ('modules/user.module', 'user', 'module', '', 1, 0, 0, 0);
837 INSERT INTO system (filename, name, type, description, status, throttle, bootstrap, schema_version) VALUES ('modules/watchdog.module', 'watchdog', 'module', '', 1, 0, 0, 0);
838 INSERT INTO system (filename, name, type, description, status, throttle, bootstrap, schema_version) VALUES ('themes/engines/phptemplate/phptemplate.engine', 'phptemplate', 'theme_engine', '', 1, 0, 0, 0);
839 INSERT INTO system (filename, name, type, description, status, throttle, bootstrap, schema_version) VALUES ('themes/bluemarine/page.tpl.php', 'bluemarine', 'theme', 'themes/engines/phptemplate/phptemplate.engine', 1, 0, 0, 0);
840 INSERT INTO users (uid, name, mail) VALUES ('0', '', '');
841
842 INSERT INTO role (rid, name) VALUES (1, 'anonymous user');
843 INSERT INTO role (rid, name) VALUES (2, 'authenticated user');
844
845 INSERT INTO permission VALUES (1,'access content',0);
846 INSERT INTO permission VALUES (2,'access comments, access content, post comments, post comments without approval',0);
847
848 INSERT INTO variable (name, value) VALUES ('theme_default', 's:10:"bluemarine";');
849
850 INSERT INTO blocks (module, delta, theme, status, pages) VALUES ('user', '0', 'bluemarine', '1', '');
851 INSERT INTO blocks (module, delta, theme, status, pages) VALUES ('user', '1', 'bluemarine', '1', '');
852
853 INSERT INTO sequences (name, id) VALUES ('menu_mid', 2);
854
855 INSERT INTO node_access VALUES (0, 0, 'all', 1, 0, 0);
856
857 INSERT INTO filter_formats VALUES (1,'Filtered HTML',',1,2,',1);
858 INSERT INTO filter_formats VALUES (2,'PHP code','',0);
859 INSERT INTO filter_formats VALUES (3,'Full HTML','',1);
860 INSERT INTO filters VALUES (1,'filter',0,0);
861 INSERT INTO filters VALUES (1,'filter',2,1);
862 INSERT INTO filters VALUES (2,'filter',1,0);
863 INSERT INTO filters VALUES (3,'filter',2,0);
864 INSERT INTO variable (name,value) VALUES ('filter_html_1','i:1;');
865
866 INSERT INTO locales_meta (locale, name, enabled, isdefault) VALUES ('en', 'English', '1', '1');
867
868 INSERT INTO variable (name, value) VALUES ('node_options_forum', 'a:1:{i:0;s:6:"status";}');
869
870 INSERT INTO menu VALUES (2, 0, '', 'Primary links', '', 0, 115);
871 INSERT INTO variable VALUES ('menu_primary_menu', 'i:2;');
872 INSERT INTO variable VALUES ('menu_secondary_menu', 'i:2;');
873