function location_fax_update_5300 in Location 7.5
Same name and namespace in other branches
- 5.3 contrib/location_fax/location_fax.install \location_fax_update_5300()
- 6.3 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 54 - Install, update and uninstall functions for the location_fax module.
Code
function location_fax_update_5300() {
if (!db_table_exists('location_fax')) {
$schema['location_fax'] = array(
'description' => 'location_fax.module {location} supplementary table.',
'fields' => array(
'lid' => array(
'description' => '{location}.lid',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'fax' => array(
'description' => 'Fax number',
'type' => 'varchar',
'length' => 31,
'not null' => TRUE,
'default' => '',
),
),
'primary key' => array(
'lid',
),
);
db_create_table('location_fax', $schema['location_fax']);
}
}