From ae70677b3d4100fd585e11f677cf27e79610ae43 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Sat, 24 Oct 2009 01:46:13 +0000 Subject: #524710 by catch and gordon: Add role_permission() table earlier in order to allow upgrade path to work. --- modules/system/system.install | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'modules') diff --git a/modules/system/system.install b/modules/system/system.install index 663d67b76..9fbc8ffee 100644 --- a/modules/system/system.install +++ b/modules/system/system.install @@ -1992,28 +1992,6 @@ function system_update_7006() { * all modules can use the updated permission scheme during their updates. */ function system_update_7007() { - $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']); - // Copy the permissions from the old {permission} table to the new {role_permission} table. $messages = array(); $result = db_query("SELECT rid, perm FROM {permission} ORDER BY rid ASC"); -- cgit v1.2.3