Przeglądaj źródła

Added blastdb field cvitjs_enabled to the blastdb schema too

E.Cannon 7 lat temu
rodzic
commit
680f9580a1
1 zmienionych plików z 8 dodań i 2 usunięć
  1. 8 2
      blast_ui.install

+ 8 - 2
blast_ui.install

@@ -25,8 +25,7 @@ function blast_ui_install() {
  * needs to be called explicitly in hook_install().
  */
 function blast_ui_schema(){
-
-  // A table ot keep extra information related to blastdb nodes.
+  // A table to keep extra information related to blastdb nodes.
   $schema['blastdb'] = array(
     'description' => t('The base table for blastdb node'),
     'fields' => array(
@@ -69,6 +68,12 @@ function blast_ui_schema(){
         'not null' => true,
         'default' => 'link'
       ),
+      'cvitjs_enabled' => array(
+        'description' => t('Indicate if CViTjs should be used to display hits on a whole genome'),
+        'type' => 'int',
+        'not null' => false,
+        'default' => 0
+      ),
     ),
     
     'indexes' => array(
@@ -260,6 +265,7 @@ function blast_ui_update_7104() {
     array(
       'description' => t('Indicate if CViTjs should be used to display hits on a whole genome'),
       'type' => 'int',
+      'not null' => false,
       'default' => 0
     )
   );