From 6b62aa321ed27832c5ccd07b97e320005943136f Mon Sep 17 00:00:00 2001 From: Phil Longstaff Date: Sat, 13 Sep 2008 02:05:09 +0000 Subject: [PATCH] Remove constraint that lot.account_guid must not be null. Unfortunately, sqlite doesn't support ALTER TABLE which modifies column constraints, so existing databases can't be modified programmatically. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17503 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/backend/sql/gnc-lots-sql.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/sql/gnc-lots-sql.c b/src/backend/sql/gnc-lots-sql.c index 403c5a0730..90aae61276 100644 --- a/src/backend/sql/gnc-lots-sql.c +++ b/src/backend/sql/gnc-lots-sql.c @@ -50,7 +50,7 @@ static void set_lot_is_closed( gpointer pObject, gboolean value ); static const GncSqlColumnTableEntry col_table[] = { { "guid", CT_GUID, 0, COL_NNUL|COL_PKEY, "guid" }, - { "account_guid", CT_GUID, 0, COL_NNUL, NULL, NULL, get_lot_account, set_lot_account }, + { "account_guid", CT_GUID, 0, 0, NULL, NULL, get_lot_account, set_lot_account }, { "is_closed", CT_BOOLEAN, 0, COL_NNUL, NULL, NULL, (QofAccessFunc)gnc_lot_is_closed, (QofSetterFunc)set_lot_is_closed }, { NULL }