function uc_file_update_4 in Ubercart 5
File
- uc_file/
uc_file.install, line 118
Code
function uc_file_update_4() {
$ret = array();
switch ($GLOBALS['db_type']) {
case 'mysqli':
case 'mysql':
$ret[] = update_sql("ALTER TABLE {uc_file_users} CHANGE `key` `file_key` VARCHAR(32) NOT NULL");
break;
case 'pgsql':
db_change_column($ret, 'uc_file_users', 'key', 'file_key', 'varchar(32)', array(
'not null' => TRUE,
));
break;
}
return $ret;
}