upgrade_1767: fetchmail.active field was just added. Make sure all

existing fetchmail jobs are active.


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1767 a1433add-5e2c-0410-b055-b7f2511e0802
pull/2/head
Christian Boltz 10 years ago
parent 8bad929a44
commit 25356ede71

@ -1381,6 +1381,12 @@ function upgrade_1763() {
db_query_parsed("UPDATE $table SET domain=SUBSTRING_INDEX(mailbox, '@', -1) WHERE domain='';"); 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: # TODO MySQL:
# - various varchar fields do not have a default value # - various varchar fields do not have a default value

Loading…
Cancel
Save