Browse Source

Merge branch '7.x-3.x' of github.com:tripal/tripal into 7.x-3.x

Stephen Ficklin 8 years ago
parent
commit
ced80d9f23
1 changed files with 14 additions and 1 deletions
  1. 14 1
      tripal/tripal.install

+ 14 - 1
tripal/tripal.install

@@ -483,7 +483,7 @@ function tripal_tripal_vocab_schema() {
       'vocabulary' => array(
         'description' => 'The short name for the vocabulary (e.g. SO, PATO, etc.).',
         'type' => 'varchar',
-        'length' => 10,
+        'length' => 128,
         'not null' => TRUE,
       ),
       'created' => array(
@@ -701,3 +701,16 @@ function tripal_tripal_bundle_variables_schema() {
 
   return $schema;
 }
+
+/**
+ * Change tripal_vocab.vocabulary to varchar(128)
+ */
+function tripal_update_7300() {
+  $spec = array(
+    'description' => 'The short name for the vocabulary (e.g. SO, PATO, etc.).',
+    'type' => 'varchar',
+    'length' => 128,
+    'not null' => TRUE
+  );
+  db_change_field('tripal_vocab', 'vocabulary', 'vocabulary',$spec);
+}