For versions table, use table name as primary key, and disallow NULL values for both fields

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18243 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Phil Longstaff 2009-08-09 22:28:34 +00:00
parent dd412f4d77
commit b3ce7cd096

View File

@ -2635,8 +2635,8 @@ gnc_sql_upgrade_table( GncSqlBackend* be, const gchar* table_name,
static GncSqlColumnTableEntry version_table[] = static GncSqlColumnTableEntry version_table[] =
{ {
/*@ -full_init_block @*/ /*@ -full_init_block @*/
{ TABLE_COL_NAME, CT_STRING, MAX_TABLE_NAME_LEN }, { TABLE_COL_NAME, CT_STRING, MAX_TABLE_NAME_LEN, COL_PKEY|COL_NNUL },
{ VERSION_COL_NAME, CT_INT }, { VERSION_COL_NAME, CT_INT, 0, COL_NNUL },
{ NULL } { NULL }
/*@ +full_init_block @*/ /*@ +full_init_block @*/
}; };