IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 14270


Ignore:
Timestamp:
Jul 17, 2007, 11:25:40 AM (19 years ago)
Author:
jhoblitt
Message:

add detRegisteredImfile table

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/dbconfig/det.md

    r14231 r14270  
    11detRun METADATA
    22    det_id      S64         0       # Primary Key AUTO_INCREMENT
    3     iteration   S32         0       # Key
     3    iteration   S32         0       # Key INDEX(det_id, iteration)
    44    det_type    STR         64      # Key
    55    mode        STR         64      # Key
     
    208208    fault       S16         0       # Key NOT NULL
    209209END
     210
     211#
     212# Note: This table needs to stay more or less identical to detNormalizedImfile.
     213# It only exists as a seperate entity so they it can have different fkeys
     214#
     215detRegisteredImfile METADATA
     216    det_id      S64         0       # Primary Key fkey(det_id, iteration) ref detRun(det_id, iteration)
     217    iteration   S32         0       # Primary Key
     218    class_id    STR         64      # Primary Key
     219    uri         STR         255
     220    bg          F64         0.0
     221    bg_stdev    F64         0.0
     222    bg_mean_stdev   F64     0.0
     223    user_1      F64         0.0
     224    user_2      F64         0.0
     225    user_3      F64         0.0
     226    user_4      F64         0.0
     227    user_5      F64         0.0
     228    path_base   STR         255
     229    fault       S16         0       # Key NOT NULL
     230END
  • trunk/ippTools/src/dettool.c

    r14269 r14270  
    69746974    }
    69756975
    6976     // XXX this is going in without checking that the det_id is valid.
    6977     // it seems like it be better to be using foreign key constraints rather
    6978     // then having to resort to a seperate query (and locking) to check that
    6979     // the det_id is valid
    6980     if (!detNormalizedImfileInsert(config->dbh,
     6976    if (!detRegisteredImfileInsert(config->dbh,
    69816977                                   (psS64)atoll(det_id),
    69826978                                   0,  // the iteration is fixed at 0
  • trunk/ippTools/src/pxtables.c

    r14250 r14270  
    7979    CREATE_TABLE(detResidExpCreateTable);
    8080    CREATE_TABLE(detRunSummaryCreateTable);
     81    CREATE_TABLE(detRegisteredImfileCreateTable);
    8182    CREATE_TABLE(warpRunCreateTable);
    8283    CREATE_TABLE(warpInputExpCreateTable);
     
    159160    DROP_TABLE(detResidExpDropTable);
    160161    DROP_TABLE(detRunSummaryDropTable);
     162    DROP_TABLE(detRegisteredImfileDropTable);
    161163    DROP_TABLE(warpRunDropTable);
    162164    DROP_TABLE(warpInputExpDropTable);
Note: See TracChangeset for help on using the changeset viewer.