diff --git a/src/Tenant/Setting.php b/src/Tenant/Setting.php
index <HASH>..<HASH> 100644
--- a/src/Tenant/Setting.php
+++ b/src/Tenant/Setting.php
@@ -96,11 +96,10 @@ class Tenant_Setting extends Pluf_Model
         );
         $this->_a['idx'] = array(
             'mod_key_idx' => array(
-                'type' => 'unique',
-                'col' => 'mod, key'
+                'col' => 'mode, key'
             ),
             'key_idx' => array(
-                'type' => 'unique',
+                'type' => 'index',
                 'col' => 'key'
             )
         );
diff --git a/tests/conf/config.php b/tests/conf/config.php
index <HASH>..<HASH> 100644
--- a/tests/conf/config.php
+++ b/tests/conf/config.php
@@ -1,5 +1,5 @@
 <?php
-// $cfg = include 'mysql.config.php';
-$cfg = include 'sqlite.config.php';
+$cfg = include 'mysql.config.php';
+// $cfg = include 'sqlite.config.php';
 return $cfg;
key,mode is not a unique index.