diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2019-05-01 22:32:11 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2019-05-15 17:36:01 +0300 |
commit | 8f9a80a9ac8f353ce2cdafa23f0e5163d30d5800 (patch) | |
tree | edb89ce300c831897cbe80b9e4e2000b0807acff /migrate | |
parent | 038ba04cc0e5a6b933254813c34108d6e3fd4a38 (diff) |
Add support for description-type package manifest value
Diffstat (limited to 'migrate')
-rw-r--r-- | migrate/migrate.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/migrate/migrate.cxx b/migrate/migrate.cxx index feec1ea..6bb0d48 100644 --- a/migrate/migrate.cxx +++ b/migrate/migrate.cxx @@ -207,7 +207,6 @@ 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>; @@ -220,10 +219,13 @@ struct package_migration_entry: package_migration_entry_base<v> }; static const package_migration_entry<12> -package_migrate_v12 ([] (database&) +package_migrate_v12 ([] (database& db) { + // Set the text_type::plain type for the present package descriptions. + // + db.execute ("UPDATE package SET description_type = 'text/plain' " + "WHERE description IS NOT NULL"); }); -#endif // main() function // |