]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
default to false instead of null
authorRaymond Chandler <intralanman@gmail.com>
Sun, 14 Aug 2011 21:23:58 +0000 (17:23 -0400)
committerRaymond Chandler <intralanman@gmail.com>
Sun, 14 Aug 2011 21:23:58 +0000 (17:23 -0400)
src/mod/applications/mod_lcr/mod_lcr.c

index e23d432aab39e2aded127bee29a8494bdd68074d..a12f9a0ed6eaaf0685a7e4581b00fb113568047c 100644 (file)
@@ -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;