From: Raymond Chandler Date: Sun, 14 Aug 2011 21:23:58 +0000 (-0400) Subject: default to false instead of null X-Git-Tag: v1.2-rc1~51^2~268 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=efb83b183cc2a3ef82bc837880cbbc978f6dae0b;p=thirdparty%2Ffreeswitch.git default to false instead of null --- diff --git a/src/mod/applications/mod_lcr/mod_lcr.c b/src/mod/applications/mod_lcr/mod_lcr.c index e23d432aab..a12f9a0ed6 100644 --- a/src/mod/applications/mod_lcr/mod_lcr.c +++ b/src/mod/applications/mod_lcr/mod_lcr.c @@ -1119,7 +1119,7 @@ static switch_status_t lcr_load_config() } if (db_check("SELECT lrn FROM lcr LIMIT 1") != SWITCH_TRUE) { - if (db_check("ALTER TABLE lcr add lrn boolean")) { + if (db_check("ALTER TABLE lcr ADD lrn BOOLEAN NOT NULL DEFAULT false")) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "adding lrn field to your lcr database schema.\n"); } else { return SWITCH_FALSE;