default to false instead of null

This commit is contained in:
Raymond Chandler 2011-08-14 17:23:58 -04:00
parent baa1624e9d
commit efb83b183c
1 changed files with 1 additions and 1 deletions

View 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;