client_applications_update_6002()Implements hook_update_N().
array An array with the results of the calls to update_sql().
client_applications/client_applications.install, line 90
<?php
function client_applications_update_6002() {
$ret = array();
$is_exist = FALSE;
$rs = db_query("SHOW COLUMNS FROM {client_applications} WHERE Field = 'still_url'");
while ($rso = db_fetch_object($rs)) {
if ($rso->Field == 'still_url') {
$is_exist = TRUE;
}
}
if (!$is_exist) {
$ret[] = update_sql("ALTER TABLE {client_applications} ADD `still_url` varchar(255) default NULL");
}
return $ret;
}
?>