diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2022-08-24 22:26:36 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2022-08-24 22:32:53 +0300 |
commit | 70e05d5ff638554a9fd7648b1ff8f413e8af0253 (patch) | |
tree | fb0f6070a0ef6a251d31b2df905337f0f93f1d8d /bdep/database.cxx | |
parent | 5a2ea3e63ef2d34c5819a1c2046308e254c13dbc (diff) |
Drop all database migrations to be backward compatible with 0.14.0 and above (two minor versions behind)
Diffstat (limited to 'bdep/database.cxx')
-rw-r--r-- | bdep/database.cxx | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/bdep/database.cxx b/bdep/database.cxx index 7fd375c..202e1d7 100644 --- a/bdep/database.cxx +++ b/bdep/database.cxx @@ -22,19 +22,15 @@ namespace bdep // Register the data migration functions. // +#if 0 template <odb::schema_version v> using migration_entry = odb::data_migration_entry<v, DB_SCHEMA_VERSION_BASE>; - static const migration_entry<2> - migrate_v2 ([] (odb::database& db) + static const migration_entry<3> + migrate_v3 ([] (odb::database& db) { - for (const shared_ptr<configuration>& c: - pointer_result (db.query<configuration> ())) - { - c->type = "target"; - db.update (c); - } }); +#endif database open (const dir_path& d, tracer& tr, bool create) |