SF.net SVN: postfixadmin:[498] trunk/upgrade.php
Brought to you by:
christian_boltz,
gingerdog
From: <Gin...@us...> - 2008-12-12 19:43:50
|
Revision: 498 http://postfixadmin.svn.sourceforge.net/postfixadmin/?rev=498&view=rev Author: GingerDog Date: 2008-12-12 19:43:46 +0000 (Fri, 12 Dec 2008) Log Message: ----------- only add hte ssl field to postgresql dbs if it does not already exist Modified Paths: -------------- trunk/upgrade.php Modified: trunk/upgrade.php =================================================================== --- trunk/upgrade.php 2008-12-12 19:42:12 UTC (rev 497) +++ trunk/upgrade.php 2008-12-12 19:43:46 UTC (rev 498) @@ -932,7 +932,9 @@ } function upgrade_439_pgsql() { $table_fetchmail = table_by_key('fetchmail'); - db_query_parsed("ALTER TABLE $table_fetchmail ADD COLUMN ssl BOOLEAN NOT NULL DEFAULT false"); + if(!_pgsql_field_exists($table_fetchmail, 'ssl')) { + db_query_parsed("ALTER TABLE $table_fetchmail ADD COLUMN ssl BOOLEAN NOT NULL DEFAULT false"); + } } function upgrade_473_mysql() { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |