IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 10059


Ignore:
Timestamp:
Nov 17, 2006, 2:19:16 PM (20 years ago)
Author:
jhoblitt
Message:

large revision to get summit copy working

Location:
trunk/dbconfig
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dbconfig/config.md

    r9969 r10059  
    22    pkg_name        STR     ippdb
    33    pkg_namespace   STR     ippdb
    4     pkg_version     STR     0.0.55
     4    pkg_version     STR     0.0.56
    55END
  • trunk/dbconfig/tasks.md

    r9969 r10059  
    1 # $Id: tasks.md,v 1.94 2006-11-14 03:15:04 jhoblitt Exp $
     1# $Id: tasks.md,v 1.95 2006-11-18 00:19:16 jhoblitt Exp $
    22
    33# this table records all exposure ID ever seen from the summit
     
    88# note that exp is a MySQL reserved word
    99
     10# for use with this stored procedure to generate exp_tags under Mysql 5+
     11#
     12#CREATE FUNCTION genTag (exp_id varchar(64)) RETURNS VARCHAR(64)
     13#BEGIN
     14#    UPDATE expTagCounter SET counter = LAST_INSERT_ID(counter + 1);
     15#    RETURN CONCAT(exp_id, '.', LAST_INSERT_ID());
     16#END
     17#
     18#expTagCounter METADATA
     19#   counter     U64         0
     20#END
     21
     22# list of source exposures -- updated as exposures are seen
     23# summitExp.imfiles is updated as filesets are queried default value should be
     24# -1 as NULL or 0 might be a valid value (empty fileset)
    1025summitExp METADATA
    1126    exp_id      STR         64      # Primary Key
    1227    camera      STR         64      # Primary Key
    1328    telescope   STR         64      # Primary Key
    14     time        UTC         NULL
    15     exp_type    STR         64
    16     uri         STR         255
    17 END
    18 
    19 pzPendingExp METADATA
    20     exp_id      STR         64      # Primary Key
    21     camera      STR         64      # Primary Key
    22     telescope   STR         64      # Primary Key
    23     # time
    24     exp_type    STR         64
    25 #    class       STR         64
     29    dateobs     UTC         NULL
     30    exp_type    STR         64
     31    uri         STR         255
    2632    imfiles     S32         0
    2733END
     
    2935# class == type of file
    3036# class_id == type set id
    31 pzPendingImfile METADATA
     37# list of source images -- updated as exposures/filesets are queried
     38summitImfile METADATA
    3239    exp_id      STR         64      # Primary Key
    3340    camera      STR         64      # Primary Key
     
    3542    bytes       S32         0
    3643    md5sum      STR         32
    37     class       STR         64
    38     class_id    STR         64      # Primary Key
     44    class       STR         64      # Primary Key
     45    class_id    STR         64      # Primary Key
     46    uri         STR         255
     47END
     48
     49# list of exposures that have had their imfiles/files registered (but not
     50# downloaded)
     51pzPendingExp METADATA
     52    exp_id      STR         64      # Primary Key
     53    camera      STR         64      # Primary Key
     54    telescope   STR         64      # Primary Key
     55END
     56
     57pzPendingImfile METADATA
     58    exp_id      STR         64      # Primary Key
     59    camera      STR         64      # Primary Key
     60    telescope   STR         64      # Primary Key
     61    class       STR         64      # Primary Key
     62    class_id    STR         64      # Primary Key
     63    exp_tag     STR         64      # Unique Key
     64END
     65
     66# list of exposures that have had all of their imfiles downloaded
     67pzDoneExp METADATA
     68    exp_id      STR         64      # Primary Key
     69    camera      STR         64      # Primary Key
     70    telescope   STR         64      # Primary Key
     71END
     72
     73pzDoneImfile METADATA
     74    exp_id      STR         64      # Primary Key
     75    camera      STR         64      # Primary Key
     76    telescope   STR         64      # Primary Key
     77    class       STR         64      # Primary Key
     78    class_id    STR         64      # Primary Key
     79    exp_tag     STR         64      # Unique Key
    3980    uri         STR         255
    4081END
    4182
    4283newExp METADATA
    43     exp_tag     STR         64      # Primary Key
     84#    exp_tag     STR         64      # Primary Key
     85    exp_tag     U64         0       # Primary Key AUTO_INCREMENT
    4486    exp_id      STR         64      # Key
    45     camera      STR         64
    46     telescope   STR         64
    47 #    time        UTC         NULL
     87    camera      STR         64      # Key
     88    telescope   STR         64      # Key
     89    dateobs     UTC         NULL
    4890    exp_type    STR         64
    4991    imfiles     S32         0
     
    5496newImfile METADATA
    5597    exp_tag     STR         64      # Primary Key
    56     class       STR         64
     98    class       STR         64      # Primary Key
    5799    class_id    STR         64      # Primary Key
    58100    uri         STR         255
     
    62104rawDetrendExp METADATA
    63105    exp_tag     STR         64      # Primary Key
     106#    exp_id      STR         64      # Key
    64107    camera      STR         64
    65108    telescope   STR         64
     
    85128rawScienceExp METADATA
    86129    exp_tag     STR         64      # Primary Key
     130#    exp_id      STR         64      # Key
    87131    camera      STR         64
    88132    telescope   STR         64
Note: See TracChangeset for help on using the changeset viewer.