function location_www_update_5300 in Location 7.3
Location 3.0 update 1. Fix pgsql -- The table definition was broken.
File
- contrib/
location_www/ location_www.install, line 55 - Install, update and uninstall functions for the location_www module.
Code
function location_www_update_5300() {
if (!db_table_exists('location_www')) {
$schema['location_www'] = array(
'description' => 'location_www.module {location} supplementary table.',
'fields' => array(
'lid' => array(
'description' => '{location}.lid',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'www' => array(
'description' => 'www adress',
'type' => 'varchar',
'length' => 31,
'not null' => TRUE,
'default' => '',
),
),
'primary key' => array(
'lid',
),
);
db_create_table('location_www', $schema['location_www']);
}
}