only add hte ssl field to postgresql dbs if it does not already exist

git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@498 a1433add-5e2c-0410-b055-b7f2511e0802
postfixadmin-2.3
David Goodwin 16 years ago
parent 007153d5f6
commit ac7fb1f6c9

@ -932,7 +932,9 @@ function upgrade_439_mysql() {
}
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() {

Loading…
Cancel
Save