function uc_addresses_update_1 in Ubercart Addresses 6
Same name and namespace in other branches
- 5.2 uc_addresses.install \uc_addresses_update_1()
- 5 uc_addresses.install \uc_addresses_update_1()
First update: remove the old incorrect sequence number name and add the correct new one. Copy over the sequence number.
File
- ./
uc_addresses.install, line 156 - Installation file of Ubercart Addresses
Code
function uc_addresses_update_1() {
$items = array();
$seq = db_query("SELECT * FROM {sequences} WHERE name = 'uc_addresses'");
if (db_num_rows($seq) == 1) {
$obj = db_fetch_object($seq);
$items[] = update_sql("DELETE FROM {sequences} WHERE name = 'uc_addresses'");
$items[] = update_sql("INSERT INTO {sequences} (name, id) VALUES('{uc_addresses}_aid'," . $obj->id . ")");
}
return $items;
}