aboutsummaryrefslogtreecommitdiff
path: root/bdep/database.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'bdep/database.cxx')
-rw-r--r--bdep/database.cxx12
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)