From 8f9a80a9ac8f353ce2cdafa23f0e5163d30d5800 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 1 May 2019 22:32:11 +0300 Subject: Add support for description-type package manifest value --- migrate/migrate.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'migrate') 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 using package_migration_entry_base = data_migration_entry; @@ -220,10 +219,13 @@ struct package_migration_entry: package_migration_entry_base }; 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 // -- cgit v1.1