Added new table to the database: log_adv_daemon_email.
[gnucomo.git] / src / gcm_daemon / classes / gnucomo_db_version.php
index a32e8ed..9908b81 100644 (file)
@@ -287,10 +287,17 @@ case 30:
      . "'The notification has been presented in a list with other notifications.')";
     $dbms->query ($local_sql);
 
-              
+case 31:
+     $local_sql  = "CREATE TABLE log_adv_daemon_email (";
+     $local_sql .= "source_ip INET, destination_ip INET, internal_messageid TEXT, ";
+     $local_sql .= "external_messageid TEXT, to_email TEXT, from_email TEXT, delay TIME, xdelay TIME, ";
+     $local_sql .= "mailer TEXT, status TEXT, pid INT";
+     $local_sql .= ") INHERITS (log_adv_daemon)";
+     $dbms->query($local_sql);
 
-/*    
-     //These columns have to be removed when a new version of PGSQL has become mainstream that supportsa DROP COLUMN
+//These columns have to be removed when a new version of PGSQL has become mainstream that supportsa DROP COLUMN
+/*
+                         
      $local_sql = "ALTER TABLE log DROP COLUMN recognized";
      $dbms->query($local_sql);