chiark / gitweb /
Rework of commodity classes and ordering
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 5 Nov 2009 16:13:52 +0000 (16:13 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Thu, 5 Nov 2009 16:13:52 +0000 (16:13 +0000)
commit9089113ed14d3a01ebe805ee15bd08705a59f172
tree1a19215249f36b7e4d8af29504f305841a5e4587
parentbb95133fcfbd4698daa59debdbaa73a4d1e6252a
Rework of commodity classes and ordering

 * Commodity classes in source-info.txt have _'s in not -'s, in
   case in the future we have classes which actually have _'s.
 * Table dumping functionality used by referential integrity check
   error reporter broken out into new functions dumptab_*
 * Complete rework of the commodclass and ordering schema
 * Multiple -D options on db-idempotent-populate increase trace level
 * Table recreation overhauled and improved:
    - temporary table now contains all columns of intended table
      (but with NOT NULL, PRIMARY KEY and UNIQUE constraints removed)
    - copy-back deferred until we have finished updating info;
      general info update works on the temporary table; this is
      so we can add a column which is NOT NULL
    - db-idempotent-update's index creation and first referential
      integrity check are deferred until after all new data has been
      incorporated
    - id compaction temporary table has a different name to the
      table recreation temporary table just in case of future
      accidents
    - table recreation copy-back dumps the entire data for the
      temporary table if the copy-back insert fails
    - all table creation in schema setup is done with table()
    - index creation is deferred until
 * Fix bugs in commodity class system
yarrg/Commods.pm
yarrg/CommodsDatabase.pm
yarrg/db-idempotent-populate
yarrg/source-info.txt