SF.net SVN: postfixadmin:[1767] trunk/upgrade.php
Brought to you by:
christian_boltz,
gingerdog
|
From: <chr...@us...> - 2015-04-04 14:33:00
|
Revision: 1767
http://sourceforge.net/p/postfixadmin/code/1767
Author: christian_boltz
Date: 2015-04-04 14:32:58 +0000 (Sat, 04 Apr 2015)
Log Message:
-----------
upgrade_1767: fetchmail.active field was just added. Make sure all
existing fetchmail jobs are active.
Modified Paths:
--------------
trunk/upgrade.php
Modified: trunk/upgrade.php
===================================================================
--- trunk/upgrade.php 2015-04-04 14:26:21 UTC (rev 1766)
+++ trunk/upgrade.php 2015-04-04 14:32:58 UTC (rev 1767)
@@ -1381,7 +1381,13 @@
db_query_parsed("UPDATE $table SET domain=SUBSTRING_INDEX(mailbox, '@', -1) WHERE domain='';");
}
+function upgrade_1767() {
+ # 'active' was just added, so make sure all existing jobs stay active
+ $table = table_by_key('fetchmail');
+ db_query_parsed("UPDATE $table SET active='{BOOL_TRUE}'");
+}
+
# TODO MySQL:
# - various varchar fields do not have a default value
# https://sourceforge.net/projects/postfixadmin/forums/forum/676076/topic/3419725
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|