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:
tomasz.sowa committed 2021-05-14 03:31:29 +02:00
1 parent 4df10de6b7
commit a94e09f0aa
16 files changed
+674 -40

No files matched your search

+4
View File
@@ -266,6 +266,10 @@ private:
void CreateStaticTree();
bool DoDatabaseMigration();
bool TryToMakeDatabaseMigration();
// !! IMPROVE ME
// !! move to the session manager?
time_t last_sessions_save;