瀏覽代碼

- new query type column to enable multi-qbf-type saves

Frederic G. Marand 15 年之前
父節點
當前提交
c754df2268
共有 1 個文件被更改,包括 13 次插入3 次删除
  1. 13 3
      qbf.install

+ 13 - 3
qbf.install

@@ -1,5 +1,5 @@
 <?php
-// $Id: qbf.install,v 1.1.4.3 2009-03-17 18:49:21 marand Exp $
+// $Id: qbf.install,v 1.1.4.4 2009-03-19 17:26:22 marand Exp $
 /**
  * @file
  * QBF module - installer
@@ -43,6 +43,14 @@ function qbf_schema()
         'not null'    => TRUE,
         'default'     => 0,
         ),
+      'type' => array
+        (
+        'description' => t('Query type'),
+        'type'        => 'varchar',
+        'length'      => 20,
+        'not null'    => TRUE,
+        'default'     => '',
+        ),
       'name' => array
         (
         'description' => t('Query name'),
@@ -77,8 +85,9 @@ function qbf_schema()
 
     'indexes' => array
       (
-      'query_updated' => array('updated'),
-      'query_created' => array('created'),
+      'query_updated'  => array('updated'),
+      'query_created'  => array('created'),
+      'query_per_user' => array('uid', 'type'),
       ),
 
     'unique keys' => array(),
@@ -182,5 +191,6 @@ function qbf_update_5000()
  */
 function qbf_update_6000()
   {
+  // @todo convert to 6.x schema
   return array();
   }