@@ -1351,8 +1351,10 @@ function tripal_feature_load_gff3_parents($feature, $cvterm, $parents,
'fmin' => $fmin,
'fmax' => $fmax,
'strand' => $strand,
- 'phase' => $phase,
);
+ if ($phase) {
+ $values['phase'] = $phase;
+ }
$result = chado_insert_record('tripal_gffcds_temp', $values);
if (!$result) {
tripal_report_error('tripal_chado', TRIPAL_ERROR, "Cound not save record in temporary CDS table, Cannot continue.", array());
@@ -753,7 +753,7 @@ function tripal_chado_add_tripal_gffcds_temp_table($skip_recreate = TRUE) {
),
'phase' => array(
'type' => 'int',
- 'not null' => TRUE,
+ 'not null' => FALSE,
'strand' => array(