| 1 |
<?php
|
| 2 |
// $Id: acl.install,v 1.2 2006/03/24 01:39:44 merlinofchaos Exp $
|
| 3 |
|
| 4 |
function acl_install() {
|
| 5 |
db_query("create table if not exists {acl} (
|
| 6 |
acl_id int(10) NOT NULL default 0,
|
| 7 |
module varchar(255),
|
| 8 |
name varchar(255),
|
| 9 |
KEY acl_id (acl_id)
|
| 10 |
);");
|
| 11 |
|
| 12 |
db_query("create table if not exists {acl_user} (
|
| 13 |
acl_id int(10) NOT NULL default 0,
|
| 14 |
uid int(10) NOT NULL default 0,
|
| 15 |
KEY acl_id (acl_id),
|
| 16 |
KEY uid (uid)
|
| 17 |
);");
|
| 18 |
|
| 19 |
db_query("create table if not exists {acl_node} (
|
| 20 |
acl_id int(10) NOT NULL default 0,
|
| 21 |
nid int(10) NOT NULL default 0,
|
| 22 |
grant_view tinyint(1) unsigned NOT NULL default '0',
|
| 23 |
grant_update tinyint(1) unsigned NOT NULL default '0',
|
| 24 |
grant_delete tinyint(1) unsigned NOT NULL default '0',
|
| 25 |
KEY acl_id (acl_id),
|
| 26 |
KEY nid (nid)
|
| 27 |
);");
|
| 28 |
|
| 29 |
drupal_set_message("acl database tables created.");
|
| 30 |
}
|