function ad_image_update_2 in Advertisement 5
Same name and namespace in other branches
- 5.2 image/ad_image.install \ad_image_update_2()
Convert to utf8 character set for all tables to allow for proper internationalization.
File
- image/
ad_image.install, line 112
Code
function ad_image_update_2() {
$ret = array();
switch ($GLOBALS['db_type']) {
case 'pgsql':
break;
default:
$tables = array(
'ad_image',
'ad_image_format',
);
foreach ($tables as $table) {
$ret[] = update_sql('ALTER TABLE {' . $table . '} CONVERT TO CHARACTER SET utf8');
}
}
return $ret;
}