|
@@ -940,6 +940,10 @@ function tripal_chado_migrate_get_biodata_tables ($chado_table) {
|
|
}
|
|
}
|
|
|
|
|
|
function tripal_chado_migrate_resource_blocks($bundle_name) {
|
|
function tripal_chado_migrate_resource_blocks($bundle_name) {
|
|
|
|
+ // Do not try to migrate resouce blocks and titles if they weren't set up
|
|
|
|
+ if (!db_table_exists('field_revision_field_resource_titles') || !db_table_exists('field_revision_field_resource_blocks')) {
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
$entites =
|
|
$entites =
|
|
db_select('chado_' . $bundle_name, 'B')
|
|
db_select('chado_' . $bundle_name, 'B')
|
|
->fields('B', array('nid'))
|
|
->fields('B', array('nid'))
|
|
@@ -1071,6 +1075,10 @@ function tripal_chado_migrate_resource_blocks($bundle_name) {
|
|
}
|
|
}
|
|
|
|
|
|
function tripal_chado_migrate_resource_links($bundle_name) {
|
|
function tripal_chado_migrate_resource_links($bundle_name) {
|
|
|
|
+ // Do not try to migrate resouce blocks and titles if they weren't set up
|
|
|
|
+ if (!db_table_exists('field_revision_field_resource_links')) {
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
$entites =
|
|
$entites =
|
|
db_select('chado_' . $bundle_name, 'B')
|
|
db_select('chado_' . $bundle_name, 'B')
|
|
->fields('B', array('nid'))
|
|
->fields('B', array('nid'))
|