aboutsummaryrefslogtreecommitdiff
path: root/migrate/migrate.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-02-27 23:06:46 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-02-28 20:18:39 +0300
commitd4aef182ebc55091c02659b7549487d928eaec28 (patch)
tree881d1d8bedbc7f88fe22a9437cce6433cfd7122d /migrate/migrate.cxx
parent8054f2973d453b71806f52f0bb30725cb31d64dd (diff)
Build packages for different toolchains having same version but different names
Diffstat (limited to 'migrate/migrate.cxx')
-rw-r--r--migrate/migrate.cxx13
1 files changed, 4 insertions, 9 deletions
diff --git a/migrate/migrate.cxx b/migrate/migrate.cxx
index a3c15e8..feec1ea 100644
--- a/migrate/migrate.cxx
+++ b/migrate/migrate.cxx
@@ -207,6 +207,7 @@ create (database& db, bool extra_only) const
// Register the data migration functions for the package database schema.
//
+#if 0
template <schema_version v>
using package_migration_entry_base =
data_migration_entry<v, LIBBREP_PACKAGE_SCHEMA_VERSION_BASE>;
@@ -218,17 +219,11 @@ struct package_migration_entry: package_migration_entry_base<v>
: package_migration_entry_base<v> (f, "package") {}
};
-// Don't forget to drop the repository_tenant view when stop supporting data
-// migration for this schema version.
-//
-static const package_migration_entry<9>
-package_migrate_v9 ([] (database& db)
+static const package_migration_entry<12>
+package_migrate_v12 ([] (database&)
{
- // Add tenant objects.
- //
- for (const auto& t: db.query<repository_tenant> ())
- db.persist (tenant (t.id));
});
+#endif
// main() function
//