IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 14023 for trunk/dbconfig


Ignore:
Timestamp:
Jul 5, 2007, 3:16:08 PM (19 years ago)
Author:
jhoblitt
Message:

rename exp_id -> exp_name
rename exp_tag -> exp_id
add add rawExp.exp_tag for use as an external name only

Location:
trunk/dbconfig
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/dbconfig/chip.md

    r14017 r14023  
    11#
    2 #  We are dependant on the assumption that there is only ever one exp_tag in a
     2#  We are dependant on the assumption that there is only ever one exp_id in a
    33#  chipRun although the database does not enforce this.
    44#
     
    1717chipInputImfile METADATA
    1818    chip_id     S64         0       # Primary Key fkey (chip_id) ref chipRun(chip_id)
    19     exp_tag     STR         64      # Primary Key fkey (exp_tag, class_id) ref rawImfile (exp_tag, class_id)
     19    exp_id      S64         64      # Primary Key fkey (exp_id, class_id) ref rawImfile (exp_id, class_id)
    2020    class_id    STR         64      # Primary Key
    2121END
    2222
    2323chipProcessedImfile METADATA
    24     chip_id     S64         0       # Primary Key fkey (chip_id, exp_tag, class_id) ref chipPendingImfile(chip_id, exp_tag, class_id)
    25     exp_tag     STR         64      # Primary Key
     24    chip_id     S64         0       # Primary Key fkey (chip_id, exp_id, class_id) ref chipInputImfile(chip_id, exp_id, class_id)
     25    exp_id     S64         64      # Primary Key
    2626    class_id        STR     64      # Primary Key
    2727    uri             STR     255
  • trunk/dbconfig/det.md

    r13937 r14023  
    3434    det_id      S64         0       # Primary Key
    3535    iteration   S32         0       # Primary Key
    36     exp_tag     STR         64      # Primary Key
     36    exp_id     S64         64      # Primary Key
    3737    include     BOOL        f
    3838END
     
    4040detProcessedImfile METADATA
    4141    det_id      S64         0      # Primary Key
    42     exp_tag     STR         64     # Primary Key
     42    exp_id     S64         64     # Primary Key
    4343    class_id    STR         64     # Primary Key
    4444    uri         STR         255
     
    6161detProcessedExp METADATA
    6262    det_id      S64         0      # Primary Key
    63     exp_tag     STR         64     # Primary Key
     63    exp_id     S64         64     # Primary Key
    6464    recipe      STR         64
    6565    bg          F64         0.0
     
    153153    det_id      S64         0       # Primary Key
    154154    iteration   S32         0       # Primary Key
    155     exp_tag     STR         64      # Primary Key
     155    exp_id     S64         64      # Primary Key
    156156    class_id    STR         64      # Primary Key
    157157    uri         STR         255
     
    176176    det_id      S64         0       # Primary Key
    177177    iteration   S32         0       # Primary Key
    178     exp_tag     STR         64      # Primary Key
     178    exp_id     S64         64      # Primary Key
    179179    recipe      STR         64
    180180    bg          F64         0.0
  • trunk/dbconfig/guide.md

    r12531 r14023  
    11guidePendingExp METADATA
    22    guide_id    S64         0       # Primary Key AUTO_INCREMENT
    3     exp_tag     STR         64      # Key
     3    exp_id     S64         64      # Key
    44    recipe      STR         64
    55END
  • trunk/dbconfig/magic.md

    r11813 r14023  
    1 # $Id: magic.md,v 1.1 2007-02-15 02:12:42 jhoblitt Exp $
     1# $Id: magic.md,v 1.2 2007-07-06 01:16:08 jhoblitt Exp $
    22
    33#
     
    1010p4MagicMaskImfile METADATA
    1111    p4_id       S32         0       # Primary Key
    12     exp_tag     STR         64      # Primary Key
     12    exp_id     S64         64      # Primary Key
    1313    p3_version  S32         0       # Primary Key
    1414# class is not yet consistently carried through pXtools
     
    2121# p4MagicMaskImfile METADATA
    2222#     p4_id       S32         0       # Primary Key
    23 #     exp_tag     STR         64      # Primary Key
     23#     exp_id     S64         64      # Primary Key
    2424#     p3_version  S32         0       # Primary Key
    2525# # class is not yet consistently carried through pXtools
     
    3434#     skycell_id  STR         64      # Primary Key
    3535#     tess_id     STR         64      # Primary Key
    36 #     exp_tag     STR         64      # Primary Key
     36#     exp_id     S64         64      # Primary Key
    3737#     p3_version  S32         0       # Primary Key
    3838# # class is not yet consistently carried through pXtools
     
    5050#     skycell_id  STR         64      # Primary Key
    5151#     tess_id     STR         64      # Primary Key
    52 #     exp_tag     STR         64      # Primary Key
     52#     exp_id     S64         64      # Primary Key
    5353#     p3_version  S32         0       # Primary Key
    5454# # class is not yet consistently carried through pXtools
     
    6464#     skycell_id  STR         64      # Primary Key
    6565#     tess_id     STR         64      # Primary Key
    66 #     exp_tag     STR         64      # Primary Key
     66#     exp_id     S64         64      # Primary Key
    6767#     p3_version  S32         0       # Primary Key
    6868# # class is not yet consistently carried through pXtools
     
    7777# p4MagicMaskImfile METADATA
    7878#     p4_id       S32         0       # Primary Key
    79 #     exp_tag     STR         64      # Primary Key
     79#     exp_id     S64         64      # Primary Key
    8080#     p3_version  S32         0       # Primary Key
    8181# # class is not yet consistently carried through pXtools
  • trunk/dbconfig/skycell.md

    r11779 r14023  
    1 # $Id: skycell.md,v 1.3 2007-02-13 22:33:30 jhoblitt Exp $
     1# $Id: skycell.md,v 1.4 2007-07-06 01:16:08 jhoblitt Exp $
    22
    33skyCell METADATA
     
    1717    skycell_id  STR         64      # Primary Key
    1818    tess_id     STR         64      # Primary Key
    19     exp_tag     STR         64      # Primary Key
     19    exp_id     S64         64      # Primary Key
    2020    p3_version  S32         0       # Primary Key
    2121# class is not yet consistently carried through pXtools
  • trunk/dbconfig/tasks.md

    r14017 r14023  
    1 # $Id: tasks.md,v 1.135 2007-07-05 20:13:45 jhoblitt Exp $
     1# $Id: tasks.md,v 1.136 2007-07-06 01:16:08 jhoblitt Exp $
    22
    33# this table records all exposure ID ever seen from the summit
    4 # exp_id == fileset
     4# exp_name == fileset
    55
    66# note that dec is a MySQL reserved word
     
    88# note that exp is a MySQL reserved word
    99
    10 # for use with this stored procedure to generate exp_tags under Mysql 5+
     10# for use with this stored procedure to generate exp_ids under Mysql 5+
    1111#
    12 #CREATE FUNCTION genTag (exp_id varchar(64)) RETURNS VARCHAR(64)
     12#CREATE FUNCTION genTag (exp_name varchar(64)) RETURNS VARCHAR(64)
    1313#BEGIN
    1414#    UPDATE expTagCounter SET counter = LAST_INSERT_ID(counter + 1);
    15 #    RETURN CONCAT(exp_id, '.', LAST_INSERT_ID());
     15#    RETURN CONCAT(exp_name, '.', LAST_INSERT_ID());
    1616#END
    1717#
    18 expTagCounter METADATA
    19    counter     U64         0
    20 END
     18#expTagCounter METADATA
     19#   counter     U64         0
     20#END
    2121
    2222# list of source exposures -- updated as exposures are seen
     
    2424# -1 as NULL or 0 might be a valid value (empty fileset)
    2525summitExp METADATA
    26     exp_id      STR         64      # Primary Key
     26    exp_name      STR         64      # Primary Key
    2727    camera      STR         64      # Primary Key
    2828    telescope   STR         64      # Primary Key
     
    3737# list of source images -- updated as exposures/filesets are queried
    3838summitImfile METADATA
    39     exp_id      STR         64      # Primary Key
     39    exp_name      STR         64      # Primary Key
    4040    camera      STR         64      # Primary Key
    4141    telescope   STR         64      # Primary Key
     
    5151# downloaded)
    5252pzPendingExp METADATA
    53     exp_id      STR         64      # Primary Key
     53    exp_name      STR         64      # Primary Key
    5454    camera      STR         64      # Primary Key
    5555    telescope   STR         64      # Primary Key
     
    5757
    5858pzPendingImfile METADATA
    59     exp_id      STR         64      # Primary Key
     59    exp_name    STR         64      # Primary Key
    6060    camera      STR         64      # Primary Key
    6161    telescope   STR         64      # Primary Key
    6262    class       STR         64      # Primary Key
    6363    class_id    STR         64      # Primary Key
    64     exp_tag     STR         64      # Unique Key
     64    exp_id      S64         64      # Unique Key
    6565END
    6666
    6767# list of exposures that have had all of their imfiles downloaded
    6868pzDoneExp METADATA
    69     exp_id      STR         64      # Primary Key
     69    exp_name    STR         64      # Primary Key
    7070    camera      STR         64      # Primary Key
    7171    telescope   STR         64      # Primary Key
     
    7373
    7474pzDoneImfile METADATA
    75     exp_id      STR         64      # Primary Key
     75    exp_name    STR         64      # Primary Key
    7676    camera      STR         64      # Primary Key
    7777    telescope   STR         64      # Primary Key
    7878    class       STR         64      # Primary Key
    7979    class_id    STR         64      # Primary Key
    80     exp_tag     STR         64      # Unique Key
     80    exp_id      S64         64      # Unique Key
    8181    uri         STR         255
    8282END
    8383
    8484newExp METADATA
    85     exp_tag     STR         64      # Primary Key
    86     exp_id      STR         64      # Key
     85    exp_id      S64         0       # Primary Key AUTO_INCREMENT
     86    tmp_exp_name STR        64      # Key
     87    tmp_camera    STR         64      # Key
     88    tmp_telescope STR         64      # Key
    8789    state       STR         64      # Key
    88     camera      STR         64      # Key
    89     telescope   STR         64      # Key
    9090    imfiles     S32         0
    9191    workdir     STR         255     # destination for output files
     
    9696# from there
    9797newImfile METADATA
    98     exp_tag     STR         64      # Primary Key fkey(exp_tag) ref newExp(exp_tag)
    99     class_id    STR         64      # Primary Key
     98    exp_id      S64         64      # Primary Key fkey(exp_id) ref newExp(exp_id)
     99    tmp_class_id STR        64      # Primary Key
    100100    uri         STR         255
    101101END
     
    103103# paired with rawImfile
    104104rawExp METADATA
    105     exp_tag     STR         64      # Primary Key fkey(exp_tag) ref newExp(exp_tag)
    106     exp_id      STR         64      # Key
     105    exp_id      S64         64      # Primary Key fkey(exp_id) ref newExp(exp_id)
     106    exp_name    STR         64
    107107    camera      STR         64
    108108    telescope   STR         64
    109109    dateobs     UTC         0001-01-01T00:00:00Z
     110    exp_tag     STR         255
    110111    exp_type    STR         64
    111112    imfiles     S32         0
     
    136137
    137138rawImfile METADATA
    138     exp_tag     STR         64      # Primary Key fkey(exp_tag, class_id) ref newImfile(exp_tag, class_id)
     139    exp_id      S64         64      # Primary Key fkey(exp_id, tmp_class_id) ref newImfile(exp_id, tmp_class_id)
     140    exp_name    STR         64
     141    camera      STR         64
     142    telescope   STR         64
     143    dateobs     UTC         0001-01-01T00:00:00Z
     144    tmp_class_id    STR     64      # Key
    139145    class_id    STR         64      # Primary Key
    140146    uri         STR         255
     
    163169    user_5      F64         0.0
    164170    object      STR         64
    165     dateobs     UTC         0001-01-01T00:00:00Z
    166171    fault       S16         0       # Key NOT NULL
    167172END
    168 
    169 #
    170 # XXX - temporarily (???) stop carrying around class in imfiles after rawImfile
    171 #
  • trunk/dbconfig/warp.md

    r13690 r14023  
    1 # $Id: warp.md,v 1.3 2007-06-07 01:10:31 price Exp $
     1# $Id: warp.md,v 1.4 2007-07-06 01:16:08 jhoblitt Exp $
    22
    33#
     
    2323
    2424# the list of imfiles in our skycell keyed against phase 3
    25 # only allow one cam_version of an exp_tag per warpRun
     25# only allow one cam_version of an exp_id per warpRun
    2626warpInputExp METADATA
    2727    warp_id     S64         0       # Primary Key fkey(warp_id) ref warpRun(warp_id)
    2828    cam_id      S64         0       # Primary Key fkey(cam_id) ref camProcessedExp(cam_id)
    29 # if magic is T then look for the exp_tag in the magic output tables
     29# if magic is T then look for the exp_id in the magic output tables
    3030    magiced     BOOL        f       # Key
    3131END
Note: See TracChangeset for help on using the changeset viewer.