IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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 #
Note: See TracChangeset for help on using the changeset viewer.