function location_fax_update_5300 in Location 6.3
Same name and namespace in other branches
- 5.3 contrib/location_fax/location_fax.install \location_fax_update_5300()
- 7.5 contrib/location_fax/location_fax.install \location_fax_update_5300()
- 7.3 contrib/location_fax/location_fax.install \location_fax_update_5300()
- 7.4 contrib/location_fax/location_fax.install \location_fax_update_5300()
Location 3.0 update 1. Fix pgsql -- The table definition was broken.
File
- contrib/
location_fax/ location_fax.install, line 57 - Installation routines.
Code
function location_fax_update_5300() {
$ret = array();
// Drupal 6 note: These should only affect postgresql, but are safe
// to run on mysql as well, so I don't bother checking db types.
if (!db_table_exists('location_fax')) {
db_create_table($ret, 'location_fax', array(
'fields' => array(
'lid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'fax' => array(
'type' => 'varchar',
'length' => 31,
'default' => NULL,
),
),
'primary key' => array(
'lid',
),
));
}
return $ret;
}