function simple_access_update_6202 in Simple Access 6.2
Fix up the name of the simple_access_node names during the update.
File
- ./
simple_access.install, line 265 - Installation for Simple Access
Code
function simple_access_update_6202() {
$ret = array();
if (db_column_exists('simple_access_node', 'view')) {
db_change_field($ret, 'simple_access_node', 'view', 'sa_view', array(
'type' => 'int',
'size' => 'tiny',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
));
}
if (db_column_exists('simple_access_node', 'update')) {
db_change_field($ret, 'simple_access_node', 'update', 'sa_update', array(
'type' => 'int',
'size' => 'tiny',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
));
}
if (db_column_exists('simple_access_node', 'delete')) {
db_change_field($ret, 'simple_access_node', 'delete', 'sa_delete', array(
'type' => 'int',
'size' => 'tiny',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
));
}
return $ret;
}