aboutsummaryrefslogtreecommitdiff
path: root/migrate/migrate.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'migrate/migrate.cxx')
-rw-r--r--migrate/migrate.cxx26
1 files changed, 8 insertions, 18 deletions
diff --git a/migrate/migrate.cxx b/migrate/migrate.cxx
index 468d411..090fcac 100644
--- a/migrate/migrate.cxx
+++ b/migrate/migrate.cxx
@@ -115,7 +115,7 @@ schema (const char* s, string name)
string kw;
i >> kw;
- statement += " " + kw;
+ statement += ' ' + kw;
if (strcasecmp (kw.c_str (), "FUNCTION") == 0)
{
@@ -133,7 +133,7 @@ schema (const char* s, string name)
else if (strcasecmp (kw.c_str (), "FOREIGN") == 0)
{
i >> kw;
- statement += " " + kw;
+ statement += ' ' + kw;
valid = strcasecmp (kw.c_str (), "TABLE") == 0;
// Fall through.
@@ -220,14 +220,15 @@ struct package_migration_entry: package_migration_entry_base<v>
: package_migration_entry_base<v> (f, "package") {}
};
-static const package_migration_entry<20>
-package_migrate_v20 ([] (database& db)
+static const package_migration_entry<26>
+package_migrate_v26 ([] (database& db)
{
});
#endif
// Register the data migration functions for the build database schema.
//
+#if 0
template <schema_version v>
using build_migration_entry_base =
data_migration_entry<v, LIBBREP_BUILD_SCHEMA_VERSION_BASE>;
@@ -239,22 +240,11 @@ struct build_migration_entry: build_migration_entry_base<v>
: build_migration_entry_base<v> (f, "build") {}
};
-static const build_migration_entry<15>
-build_migrate_v15 ([] (database& db)
+static const build_migration_entry<19>
+build_migrate_v19 ([] (database& db)
{
- // Setting proper checksums here feels a bit hairy. Let's assign them
- // naturally on the first rebuild.
- //
- db.execute ("UPDATE build SET "
- "soft_timestamp = completion_timestamp, "
- "hard_timestamp = completion_timestamp, "
- "controller_checksum = '', "
- "machine_checksum = ''");
-
- db.execute ("UPDATE build_delay SET "
- "report_soft_timestamp = report_timestamp, "
- "report_hard_timestamp = report_timestamp");
});
+#endif
// main() function
//