| 1 |
<?php
|
| 2 |
// $Id: forum_access.install,v 1.3 2006/03/24 03:41:22 merlinofchaos Exp $
|
| 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 |
drupal_set_message("forum_access database tables created.");
|
| 17 |
}
|