DataObjects/I18n.php
[Pman.Core] / UpdateDatabase.php
index 48ab600..8dcb826 100644 (file)
@@ -61,6 +61,13 @@ class Pman_Core_UpdateDatabase extends Pman
             'min' => 1,
             'max' => 1,
         ),
+        'procedures-only' => array(
+            'desc' => 'Only import procedures (not supported by most modules yet) - ignores sql directory',
+            'default' => '',
+            'min' => 1,
+            'max' => 1,
+        ),
+        
         
         'json-person' => array(
             'desc' => 'Person JSON file',
@@ -121,10 +128,9 @@ class Pman_Core_UpdateDatabase extends Pman
      
     function get($args, $opts)
     {
-        
         PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, array($this, 'onPearError'));
    
-        print_r($opts);exit;
+        
         //$this->fixSequencesPgsql();exit;
         $this->opts = $opts;
         
@@ -644,7 +650,10 @@ class Pman_Core_UpdateDatabase extends Pman
                 'name' => 'bcc-email', // group who are bcc'ed on all requests.
                 'type' => 0, // system
             ),
-            
+            array(
+                'name' => 'system-email-from',
+                'type' => 0, // system
+            ),
         ));
         
     }
@@ -675,7 +684,7 @@ class Pman_Core_UpdateDatabase extends Pman
         $c->query("
             UPDATE Companies 
                 SET
-                    comptype_id = (SELECT id FROM core_enum where etype='comptype' and name=Companies.comptype)
+                    comptype_id = (SELECT id FROM core_enum where etype='comptype' and name=Companies.comptype LIMIT 1)
                 WHERE
                     comptype_id = 0
                     AND