mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
INFO message to trace log if a table is automatically upgraded to newer version.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19699 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
feba4d6907
commit
dd81726d6d
@ -333,6 +333,8 @@ create_billterm_tables( GncSqlBackend* be )
|
||||
/* Upgrade 64 bit int handling */
|
||||
gnc_sql_upgrade_table( be, TABLE_NAME, col_table );
|
||||
gnc_sql_set_table_version( be, TABLE_NAME, TABLE_VERSION );
|
||||
|
||||
PINFO("Billterms table upgraded from version 1 to version %d\n", TABLE_VERSION);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -161,6 +161,8 @@ create_customer_tables( GncSqlBackend* be )
|
||||
/* Upgrade 64 bit int handling */
|
||||
gnc_sql_upgrade_table( be, TABLE_NAME, col_table );
|
||||
gnc_sql_set_table_version( be, TABLE_NAME, TABLE_VERSION );
|
||||
|
||||
PINFO("Customers table upgraded from version 1 to version %d\n", TABLE_VERSION);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -154,6 +154,8 @@ create_employee_tables( GncSqlBackend* be )
|
||||
/* Upgrade 64 bit int handling */
|
||||
gnc_sql_upgrade_table( be, TABLE_NAME, col_table );
|
||||
gnc_sql_set_table_version( be, TABLE_NAME, TABLE_VERSION );
|
||||
|
||||
PINFO("Employees table upgraded from version 1 to version %d\n", TABLE_VERSION);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -229,6 +229,8 @@ create_entry_tables( GncSqlBackend* be )
|
||||
*/
|
||||
gnc_sql_upgrade_table( be, TABLE_NAME, col_table );
|
||||
gnc_sql_set_table_version( be, TABLE_NAME, TABLE_VERSION );
|
||||
|
||||
PINFO("Entries table upgraded from version %d to version %d\n", version, TABLE_VERSION);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -172,6 +172,8 @@ create_invoice_tables( GncSqlBackend* be )
|
||||
*/
|
||||
gnc_sql_upgrade_table( be, TABLE_NAME, col_table );
|
||||
gnc_sql_set_table_version( be, TABLE_NAME, TABLE_VERSION );
|
||||
|
||||
PINFO("Invoices table upgraded from version %d to version %d\n", version, TABLE_VERSION);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -170,6 +170,8 @@ create_lots_tables( GncSqlBackend* be )
|
||||
|
||||
gnc_sql_upgrade_table( be, TABLE_NAME, col_table );
|
||||
(void)gnc_sql_set_table_version( be, TABLE_NAME, TABLE_VERSION );
|
||||
|
||||
PINFO("Lots table upgraded from version 1 to version %d\n", TABLE_VERSION);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -147,6 +147,8 @@ create_prices_tables( GncSqlBackend* be )
|
||||
/* Upgrade 64 bit int handling */
|
||||
gnc_sql_upgrade_table( be, TABLE_NAME, col_table );
|
||||
(void)gnc_sql_set_table_version( be, TABLE_NAME, TABLE_VERSION );
|
||||
|
||||
PINFO("Prices table upgraded from version 1 to version %d\n", TABLE_VERSION);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -780,6 +780,7 @@ create_slots_tables( GncSqlBackend* be )
|
||||
}
|
||||
}
|
||||
(void)gnc_sql_set_table_version( be, TABLE_NAME, TABLE_VERSION );
|
||||
PINFO("Slots table upgraded from version %d to version %d\n", version, TABLE_VERSION);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -395,6 +395,7 @@ create_taxtable_tables( GncSqlBackend* be )
|
||||
/* Upgrade 64 bit int handling */
|
||||
gnc_sql_upgrade_table( be, TT_TABLE_NAME, tt_col_table );
|
||||
gnc_sql_set_table_version( be, TT_TABLE_NAME, TT_TABLE_VERSION );
|
||||
PINFO("Taxtables table upgraded from version 1 to version %d\n", TT_TABLE_VERSION);
|
||||
}
|
||||
|
||||
version = gnc_sql_get_table_version( be, TTENTRIES_TABLE_NAME );
|
||||
@ -407,6 +408,7 @@ create_taxtable_tables( GncSqlBackend* be )
|
||||
/* Upgrade 64 bit int handling */
|
||||
gnc_sql_upgrade_table( be, TTENTRIES_TABLE_NAME, ttentries_col_table );
|
||||
gnc_sql_set_table_version( be, TTENTRIES_TABLE_NAME, TTENTRIES_TABLE_VERSION );
|
||||
PINFO("Taxtable entries table upgraded from version 1 to version %d\n", TTENTRIES_TABLE_VERSION);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -522,6 +522,7 @@ create_transaction_tables( GncSqlBackend* be )
|
||||
*/
|
||||
gnc_sql_upgrade_table( be, TRANSACTION_TABLE, tx_col_table );
|
||||
(void)gnc_sql_set_table_version( be, TRANSACTION_TABLE, TX_TABLE_VERSION );
|
||||
PINFO("Transactions table upgraded from version %d to version %d\n", version, TX_TABLE_VERSION);
|
||||
}
|
||||
|
||||
version = gnc_sql_get_table_version( be, SPLIT_TABLE );
|
||||
@ -557,6 +558,7 @@ create_transaction_tables( GncSqlBackend* be )
|
||||
PERR( "Unable to create index\n" );
|
||||
}
|
||||
(void)gnc_sql_set_table_version( be, SPLIT_TABLE, SPLIT_TABLE_VERSION );
|
||||
PINFO("Splits table upgraded from version %d to version %d\n", version, SPLIT_TABLE_VERSION);
|
||||
}
|
||||
}
|
||||
/* ================================================================= */
|
||||
|
Loading…
Reference in New Issue
Block a user