瀏覽代碼

Change to tripal_cvterm_mapping table

Stephen Ficklin 8 年之前
父節點
當前提交
59fdae1f40
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      tripal_chado/tripal_chado.install

+ 4 - 1
tripal_chado/tripal_chado.install

@@ -693,12 +693,15 @@ function tripal_chado_tripal_cvterm_mapping_schema() {
       'chado_field' => array (
         'type' => 'varchar',
         'length' => 128,
-        'not null' => TRUE
+        'not null' => FALSE
       ),
     ),
     'primary key' => array (
       0 => 'mapping_id'
     ),
+    'unique key' => array(
+      'cvterm_id',
+    ),
     'indexes' => array(
       'tripal_cvterm2table_idx1' => array('cvterm_id'),
       'tripal_cvterm2table_idx2' => array('chado_table'),