summaryrefslogtreecommitdiff
path: root/modules/book/book.install
blob: 7e80ccd4403f37d7b4b78191a7134cceda258e56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php

function book_install() {
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
      db_query("CREATE TABLE {book} (
        vid int(10) unsigned NOT NULL default '0',
        nid int(10) unsigned NOT NULL default '0',
        parent int(10) NOT NULL default '0',
        weight tinyint(3) NOT NULL default '0',
        PRIMARY KEY (vid),
        KEY nid (nid),
        KEY parent (parent)
      ) /*!40100 DEFAULT CHARACTER SET UTF8 */ ");
  }
}