Made bool column def depend on db type