function photos_access_update_7000 in Album Photos 7.3
Upgrade Photos Access from D6 to D7.
File
- photos_access/
photos_access.install, line 90 - Install, update, and uninstall functions for the Photos Access module.
Code
function photos_access_update_7000() {
if (db_table_exists('x_album_ac')) {
// Drop all new empty tables.
db_drop_table('photos_access_album');
db_drop_table('photos_access_user');
// Rename existing tables.
db_rename_table('x_album_ac', 'photos_access_album');
db_rename_table('x_album_acuser', 'photos_access_user');
}
}