added support for Model migrations
now we have a table core.migration and each model (User, Group, Item, ItemContent and a new Migration) have its own row in the table with a version number added to config: db_make_migration_if_needed and db_stop_if_migration_fails (need description yet)
This commit is contained in:
@@ -40,19 +40,19 @@
|
||||
namespace Winix
|
||||
{
|
||||
|
||||
void Db::PostgreSQLsmallerThan10(bool is_smaller_than_10)
|
||||
{
|
||||
is_postgresql_smaller_than_10 = is_smaller_than_10;
|
||||
|
||||
if( is_postgresql_smaller_than_10 )
|
||||
{
|
||||
postgrsql_row_statement.clear();
|
||||
}
|
||||
else
|
||||
{
|
||||
postgrsql_row_statement = L"ROW";
|
||||
}
|
||||
}
|
||||
//void Db::PostgreSQLsmallerThan10(bool is_smaller_than_10)
|
||||
//{
|
||||
// is_postgresql_smaller_than_10 = is_smaller_than_10;
|
||||
//
|
||||
// if( is_postgresql_smaller_than_10 )
|
||||
// {
|
||||
// postgrsql_row_statement.clear();
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// postgrsql_row_statement = L"ROW";
|
||||
// }
|
||||
//}
|
||||
|
||||
|
||||
/*
|
||||
|
||||
@@ -61,7 +61,7 @@ public:
|
||||
is_postgresql_smaller_than_10 = false;
|
||||
}
|
||||
|
||||
void PostgreSQLsmallerThan10(bool is_smaller_than_10);
|
||||
//void PostgreSQLsmallerThan10(bool is_smaller_than_10);
|
||||
|
||||
/*
|
||||
bool GetUserPass(const std::wstring & login, long & user_id, UserPass & up);
|
||||
|
||||
Reference in New Issue
Block a user