IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 24, 2011, 2:09:53 PM (15 years ago)
Author:
watersc1
Message:

implementation of summit_id index in summit{Exp,Imfile},pzDownload{Exp,Imfile},newExp tables.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dbconfig/summitcopy.md

    r26378 r31038  
    1111# -1 as NULL or 0 might be a valid value (empty fileset)
    1212summitExp METADATA
    13     exp_name    STR         64      # Primary Key
    14     camera      STR         64      # Primary Key
    15     telescope   STR         64      # Primary Key
     13    summit_id   S64         0       # Primary Key AUTO_INCREMENT
     14    exp_name    STR         64      # Key
     15    camera      STR         64      # Key
     16    telescope   STR         64      # Key
    1617    dateobs     UTC         NULL
    1718    exp_type    STR         64
     
    2627# list of source images -- updated as exposures/filesets are queried
    2728summitImfile METADATA
    28     exp_name    STR         64      # Primary Key fkey(exp_name, camera, telescope) ref summitExp(exp_name, camera, telescope)
    29     camera      STR         64      # Primary Key
    30     telescope   STR         64      # Primary Key
     29    summit_id   S64         0       # Primary Key fkey(summit_id) ref summitExp(summit_id)
     30    exp_name    STR         64      # Key fkey(exp_name, camera, telescope) ref summitExp(exp_name, camera, telescope)
     31    camera      STR         64      # Key
     32    telescope   STR         64      # Key
    3133    file_id     STR         64      # Key
    3234    bytes       S32         0
     
    4143# downloaded)
    4244pzDownloadExp METADATA
    43     exp_name    STR         64      # Primary Key fkey(exp_name, camera, telescope) ref summitExp(exp_name, camera, telescope)
    44     camera      STR         64      # Primary Key
    45     telescope   STR         64      # Primary Key
     45    summit_id   S64         0       # Primary Key fkey(summit_id) ref summitExp(summit_id)
     46    exp_name    STR         64      # Key fkey(exp_name, camera, telescope) ref summitExp(exp_name, camera, telescope)
     47    camera      STR         64      # Key
     48    telescope   STR         64      # Key
    4649    state       STR         64      # Key
    4750    epoch       UTC         0001-01-01T00:00:00Z
     
    4952
    5053pzDownloadImfile METADATA
    51     exp_name    STR         64      # Primary Key fkey(exp_name, camera, telescope) ref pzDownloadExp(exp_name, camera, telescope)
    52     camera      STR         64      # Primary Key fkey(exp_name, camera, telescope, class, class_id) ref summitImfile(exp_name, camera, telescope, class, class_id)
    53     telescope   STR         64      # Primary Key
    54     class       STR         64      # Primary Key
     54    summit_id   S64         0       # Primary Key fkey(summit_id) ref pzDownloadExp(summit_id)
     55    exp_name    STR         64      # Key fkey(exp_name, camera, telescope) ref pzDownloadExp(exp_name, camera, telescope)
     56    camera      STR         64      # Key fkey(exp_name, camera, telescope, class, class_id) ref summitImfile(exp_name, camera, telescope, class, class_id)
     57    telescope   STR         64      # Key fkey(exp_name, camera, telescope) ref summitExp(exp_name, camera, telescope)
     58    class       STR         64      # Primary Key fkey(summit_id,class,class_id) ref summitImfile(summit_id,class,class_id)
    5559    class_id    STR         64      # Primary Key
    5660    uri         STR         255
Note: See TracChangeset for help on using the changeset viewer.