IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 27028


Ignore:
Timestamp:
Feb 22, 2010, 1:44:30 PM (16 years ago)
Author:
Paul Price
Message:

Schema change to support requirement of magicked detections for MOPS publishing.

Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/dbconfig/changes.txt

    r27020 r27028  
    15191519-- Version 1.1.65
    15201520
     1521ALTER TABLE publishClient ADD COLUMN magicked TINYINT DEFAULT 1 AFTER stage;
     1522
  • trunk/dbconfig/publish.md

    r25929 r27028  
    66    product      STR         64
    77    stage        STR         64
     8    magicked     BOOL        TRUE
    89    workdir      STR         255
    910    comment      STR         255
  • trunk/ippTools/share/pubtool_definerun.sql

    r26956 r27028  
    1515        AND publishClient.active = 1
    1616        AND diffRun.state = 'full'
     17        AND (diffRun.magicked > 0 OR publishClient.magicked = 0)
    1718    -- WHERE hook %s
    1819    UNION
     
    2728        AND publishClient.active = 1
    2829        AND camRun.state = 'full'
     30        AND (camRun.magicked > 0 OR publishClient.magicked = 0)
    2931    -- WHERE hook %s
    3032    ) AS publishToDo
  • trunk/ippTools/share/pxadmin_create_tables.sql

    r26519 r27028  
    14941494    product VARCHAR(64),             -- product name
    14951495    stage VARCHAR(64) NOT NULL, -- stage of interest (chip, camera, diff, etc.)
     1496    magicked TINYINT DEFAULT 1, -- Require magicked data?
    14961497    workdir VARCHAR(255) NOT NULL, -- working directory
    14971498    comment VARCHAR(255),            -- for human memory
  • trunk/ippTools/src/pubtool.c

    r26981 r27028  
    9595    // optional
    9696    PXOPT_LOOKUP_STR(comment, config->args, "-comment",  false, false);
    97 
    98     if (!publishClientInsert(config->dbh, 0, 0, product, stage, workdir, comment)) {
     97    PXOPT_LOOKUP_BOOL(unmagicked, config->args, "-unmagicked",  false);
     98
     99    if (!publishClientInsert(config->dbh, 0, 0, product, stage, !unmagicked, workdir, comment)) {
    99100        psError(PS_ERR_UNKNOWN, false, "Database error");
    100101        return false;
  • trunk/ippTools/src/pubtoolConfig.c

    r26956 r27028  
    4949    psMetadataAddStr(defineclientArgs, PS_LIST_TAIL, "-workdir", 0, "define workdir (required)", NULL);
    5050    psMetadataAddStr(defineclientArgs, PS_LIST_TAIL, "-comment", 0, "define comment", NULL);
     51    psMetadataAddBool(defineclientArgs, PS_LIST_TAIL, "-unmagicked", 0, "allow unmagicked data?", false);
    5152
    5253    // -updateclient
Note: See TracChangeset for help on using the changeset viewer.