From efb83b183cc2a3ef82bc837880cbbc978f6dae0b Mon Sep 17 00:00:00 2001 From: Raymond Chandler Date: Sun, 14 Aug 2011 17:23:58 -0400 Subject: [PATCH] default to false instead of null --- src/mod/applications/mod_lcr/mod_lcr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;