| | 98 | == Definition of an IPP release == |
| | 99 | |
| | 100 | A collection of data "released" to the PS1SC community will be represented in the IPP database by a row |
| | 101 | in 2 new tables called "ippRelease" and "survey". Here are the proposed definitions |
| | 102 | |
| | 103 | {{{ |
| | 104 | mysql> describe survey; |
| | 105 | +-------------+--------------+------+-----+---------+-------+ |
| | 106 | | Field | Type | Null | Key | Default | Extra | |
| | 107 | +-------------+--------------+------+-----+---------+-------+ |
| | 108 | | surveyID | tinyint(8) | NO | PRI | 0 | | |
| | 109 | | name | varchar(16) | YES | MUL | NULL | | |
| | 110 | | description | varchar(255) | YES | | NULL | | |
| | 111 | +-------------+--------------+------+-----+---------+-------+ |
| | 112 | 3 rows in set (0.00 sec) |
| | 113 | |
| | 114 | mysql> describe ippRelease; |
| | 115 | +-------------+-------------+------+-----+---------+----------------+ |
| | 116 | | Field | Type | Null | Key | Default | Extra | |
| | 117 | +-------------+-------------+------+-----+---------+----------------+ |
| | 118 | | rel_id | smallint(6) | NO | PRI | NULL | auto_increment | |
| | 119 | | surveyID | tinyint(8) | YES | MUL | NULL | | |
| | 120 | | releaseName | varchar(16) | YES | MUL | NULL | | |
| | 121 | | state | varchar(16) | YES | MUL | NULL | | |
| | 122 | | dataRelease | tinyint(8) | YES | | NULL | | |
| | 123 | +-------------+-------------+------+-----+---------+----------------+ |
| | 124 | 5 rows in set (0.00 sec) |
| | 125 | }}} |
| | 126 | |
| | 127 | The survey table is a copy of the PSPS table Survey. Example entries are |
| | 128 | |
| | 129 | {{{ |
| | 130 | +----------+------+------------------------------------+ |
| | 131 | | surveyID | name | description | |
| | 132 | +----------+------+------------------------------------+ |
| | 133 | | 0 | 3PI | PS1 3PI Survey | |
| | 134 | | 1 | MD01 | PS1 MD01 XMM-LSS-DXS 022224-043000 | |
| | 135 | +----------+------+------------------------------------+ |
| | 136 | }}} |
| | 137 | |
| | 138 | The columns in ippRelease are |
| | 139 | * rel_id primary key for the row |
| | 140 | * surveyID for to the survey that the data in a particular release contains |
| | 141 | * releaseName - human friendly identifier for the release |
| | 142 | * state - current status of the release. Several values have been identified |
| | 143 | * active - results for the release are currently available to the community |
| | 144 | * pending - release identified, construction may have begun, but the data is not yet ready to be available by default |
| | 145 | * archive - the release contains the results of a previous processing of the data that has been superseded. |
| | 146 | * dataRelease - If not null, the dataRelease value in the corresponding PSPS tables. |
| | 147 | |
| | 148 | {{{ |
| | 149 | +--------+----------+-------------+---------+-------------+ |
| | 150 | | rel_id | surveyID | releaseName | state | dataRelease | |
| | 151 | +--------+----------+-------------+---------+-------------+ |
| | 152 | | 1 | 0 | 3PI.nightly | active | NULL | |
| | 153 | | 2 | 0 | 3PI.GR0 | active | 0 | |
| | 154 | | 3 | 0 | 3PI.GR1 | pending | 1 | |
| | 155 | | 4 | 0 | SAS.V8 | archive | 8 | |
| | 156 | | 5 | 0 | SAS.V9 | active | 9 | |
| | 157 | +--------+----------+-------------+---------+-------------+ |
| | 158 | }}} |