monotone-commits-nodiffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Monotone-commits-nodiffs] Revision d268327a82eed2aae414fba1a5eecad4cb7d


From: monotone
Subject: [Monotone-commits-nodiffs] Revision d268327a82eed2aae414fba1a5eecad4cb7de954
Date: Wed, 21 Feb 2007 18:05:15 +0100

-----------------------------------------------------------------
Revision: d268327a82eed2aae414fba1a5eecad4cb7de954
Ancestor: 2243173005802c676dee57f87bb67d83b84256c0
Author: address@hidden
Date: 2007-02-21T16:42:49
Branch: net.venge.monotone

Deleted entries:
        contrib/mashschema.cc
        
tests/schema_migration/2881277287f6ee9bfc5ee255a503a6dc20dd5994.mtn.dumped
Added files:
        contrib/recreate-manifest-tables.sh
        
tests/schema_migration/fe48b0804e0048b87b4cea51b3ab338ba187bdc2.mtn.dumped
Modified files:
        README.changesets database.cc schema.sql schema_migration.cc
        tests/schema_migration/__driver__.lua
        tests/schema_migration_bad_schema/possible.dump
Modified attrs:
        contrib/recreate-manifest-tables.sh

ChangeLog: 

        Partially revert revision 2243173005802c676dee57f87bb67d83b84256c0,
        and add some more safety nets and a special migration tool.

        * README.changesets: Revert all changes.
        * schema.sql: Restore the definitions of the manifests,
        manifest_deltas, and manifest_certs tables, but move them to the
        end of the file and label them obsolete.
        * schema_migration.cc: Add dump functions for our local data structures.
        (migrate_add_ccode_and_drop_manifest_tables):
        Rename migrate_add_ccode.  Delete code to drop tables.
        (migration_events): Update.
        (get_schema_data): Rename calculate_schema_id; calculate the hash here.
        (temporarily_allowed_tables, compare_schema_hash): Delete.
        (find_migration): Can compare hashes directly.  Use 'm' not 'p'
        for migration_events iterator variable, for consistency.
        (describe_sql_schema): Use calculate_schema_id.
        (migrate_sql_schema): Similarly.  Add a whole bunch of MMs.
        * tests/schema_migration: Update.

        * database.cc (database::check_format): May assume 'manifests'
        table exists.  Condition pre/post-rosterification check on
        whether it is empty.
        (database::debug): Call ensure_open_for_maintenance, so 'db execute'
        works on databases with invalid schemas.
        (database::delete_existing_manifests): Revert; do not drop tables.
        * tests/schema_migration_bad_schema/possible.dump: Restore
        manifest tables.

        * contrib/recreate-manifest-tables.sh: New file.
        * contrib/mashschema.cc: Delete.


monotone --db={your.database} diff 
--revision=2243173005802c676dee57f87bb67d83b84256c0 
--revision=d268327a82eed2aae414fba1a5eecad4cb7de954
----------------------------------------------------------------------




reply via email to

[Prev in Thread] Current Thread [Next in Thread]