function domain_update_6201 in Domain Access 6.2
Updates to 6.x.2.
Deletes entries from {domain_editor} for domains that no longer exist.
This update is needed by people who have been running 6.x.2rc versions.
File
- ./
domain.install, line 158 - Install file.
Code
function domain_update_6201() {
$ret = array();
db_query("DELETE FROM {domain_editor} WHERE NOT EXISTS (SELECT domain_id FROM {domain} WHERE {domain}.domain_id={domain_editor}.domain_id)");
return $ret;
}