mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
dd412f4d77
commit
b3ce7cd096
@ -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 @*/
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user