# # # patch "schema_migration.cc" # from [703c3ecf0e220921ef5165203a1f561fb71ac875] # to [828e05c8ea397c741b4368b2ecc7854b8ebf5e32] # ============================================================ --- schema_migration.cc 703c3ecf0e220921ef5165203a1f561fb71ac875 +++ schema_migration.cc 828e05c8ea397c741b4368b2ecc7854b8ebf5e32 @@ -637,6 +637,17 @@ migrate_add_ccode_and_drop_manifest_tabl "DROP TABLE manifest_deltas;"); } +char const migrate_add_sentinels[] = + "CREATE TABLE sentinels" + " ( id not null, -- revision id of just missing nodes\n" + " unique(id)" + " );" + "CREATE TABLE horizon_manifests" + " ( id not null, -- revision id\n" + " manifest_with_ids, -- compressed, like a roster without markings\n" + " unique(id)" + " );" + ; // these must be listed in order so that ones listed earlier override ones // listed later @@ -701,9 +712,12 @@ const migration_event migration_events[] { "48fd5d84f1e5a949ca093e87e5ac558da6e5956d", 0, migrate_add_ccode_and_drop_manifest_tables, upgrade_none }, + { "2881277287f6ee9bfc5ee255a503a6dc20dd5994", + migrate_add_sentinels, 0, upgrade_none }, + // The last entry in this table should always be the current // schema ID, with 0 for the migrators. - { "2881277287f6ee9bfc5ee255a503a6dc20dd5994", 0, 0, upgrade_none } + { "6590eaed45a523308bcc9d0edcb54b33b10ef5df", 0, 0, upgrade_none } }; const size_t n_migration_events = (sizeof migration_events / sizeof migration_events[0]);