diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2020-07-23 13:01:53 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2020-07-23 13:44:14 +0300 |
commit | 247ebd5e7b987c180fbd896af4b9d29808e3c0d1 (patch) | |
tree | 751d5497d6c60c9e8ee0c400c37a8797e83516ee /migrate | |
parent | 84b7b5ee05ed865975f769270bd8a56f3a9059d6 (diff) |
Drop all database migrations to be backward compatible with only 0.13.0 (one minor version behind)
Diffstat (limited to 'migrate')
-rw-r--r-- | migrate/migrate.cxx | 32 |
1 files changed, 4 insertions, 28 deletions
diff --git a/migrate/migrate.cxx b/migrate/migrate.cxx index 0ef6096..88c87c1 100644 --- a/migrate/migrate.cxx +++ b/migrate/migrate.cxx @@ -206,6 +206,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>; @@ -217,36 +218,11 @@ struct package_migration_entry: package_migration_entry_base<v> : package_migration_entry_base<v> (f, "package") {} }; -// Set the unbuildable reason for unbuildable packages. -// -// Note that we are unable to restore the exact reason and so always set it -// to 'unbuildable'. -// -// Also note that we don't set the buildable flag to false for the separate -// test packages here. Implementing this properly in the data migration feels -// hairy (see load/load.cxx for details). Instead we rely on brep-load to -// handle this on the next tenant reload that can be enforced by using the -// --force option. -// -//#if 0 -static const package_migration_entry<18> -package_migrate_v18 ([] (database& db) -{ - db.execute ("UPDATE package SET unbuildable_reason = 'unbuildable' " - "WHERE NOT buildable"); -}); -//#endif - -// Merging the package examples and benchmarks tables into the package tests -// table is a bit hairy. Thus, we won't bother with that and just cleanup the -// amended package tests table, relying on the loader to fill it in a short -// time. -// -static const package_migration_entry<19> -package_migrate_v19 ([] (database& db) +static const package_migration_entry<20> +package_migrate_v20 ([] (database& db) { - db.execute ("DELETE from package_tests"); }); +#endif // main() function // |