summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
Diffstat (limited to 'includes')
-rw-r--r--includes/update.inc24
1 files changed, 23 insertions, 1 deletions
diff --git a/includes/update.inc b/includes/update.inc
index f8c731e6d..283cc4bf1 100644
--- a/includes/update.inc
+++ b/includes/update.inc
@@ -128,10 +128,32 @@ function update_fix_d7_requirements() {
$schema['cache_path']['description'] = 'Cache table used for path alias lookups.';
// system_update_7042() renames columns, but these are needed to bootstrap.
- // add empty columns for now.
+ // Add empty columns for now.
db_add_field('url_alias', 'source', array('type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'default' => ''));
db_add_field('url_alias', 'alias', array('type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'default' => ''));
+ // Add the role_permisson table.
+ $schema['role_permission'] = array(
+ 'fields' => array(
+ 'rid' => array(
+ 'type' => 'int',
+ 'unsigned' => TRUE,
+ 'not null' => TRUE,
+ ),
+ 'permission' => array(
+ 'type' => 'varchar',
+ 'length' => 64,
+ 'not null' => TRUE,
+ 'default' => '',
+ ),
+ ),
+ 'primary key' => array('rid', 'permission'),
+ 'indexes' => array(
+ 'permission' => array('permission'),
+ ),
+ );
+ db_create_table('role_permission', $schema['role_permission']);
+
// Add column for locale context.
if (db_table_exists('locales_source')) {
db_add_field('locales_source', 'context', array('type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'default' => '', 'description' => 'The context this string applies to.'));