default to false instead of null
This commit is contained in:
parent
baa1624e9d
commit
efb83b183c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue