| 1 |
<?php
|
| 2 |
// $Id$
|
| 3 |
|
| 4 |
function forum_access_install() {
|
| 5 |
db_query("create table if not exists forum_access (
|
| 6 |
tid int(10) NOT NULL default 0,
|
| 7 |
rid int(10) NOT NULL default 0,
|
| 8 |
grant_view tinyint(1) unsigned NOT NULL default '0',
|
| 9 |
grant_update tinyint(1) unsigned NOT NULL default '0',
|
| 10 |
grant_delete tinyint(1) unsigned NOT NULL default '0',
|
| 11 |
grant_create tinyint(1) unsigned NOT NULL default '0',
|
| 12 |
KEY tid (tid),
|
| 13 |
KEY rid (rid)
|
| 14 |
);");
|
| 15 |
|
| 16 |
db_query("create table if not exists forum_moderator (
|
| 17 |
tid int(10) NOT NULL default 0,
|
| 18 |
uid int(10) NOT NULL default 0,
|
| 19 |
key uid (uid),
|
| 20 |
key tid (tid)
|
| 21 |
);");
|
| 22 |
drupal_set_message("forum_access database tables created.");
|
| 23 |
}
|