| | @@ -153,10 +153,30 @@ |
| 153 | 153 | @ -- table. Private artifacts are omitted from the "unclustered" and |
| 154 | 154 | @ -- "unsent" tables. |
| 155 | 155 | @ -- |
| 156 | 156 | @ CREATE TABLE private(rid INTEGER PRIMARY KEY); |
| 157 | 157 | @ |
| 158 | +@ -- Some ticket content (such as the originators email address or contact |
| 159 | +@ -- information) needs to be obscured to protect privacy. This is achieved |
| 160 | +@ -- by storing an SHA1 hash of the content. For display, the hash is |
| 161 | +@ -- mapped back into the original text using this table. |
| 162 | +@ -- |
| 163 | +@ -- This table contains sensitive information and should not be shared |
| 164 | +@ -- with unauthorized users. |
| 165 | +@ -- |
| 166 | +@ CREATE TABLE concealed( |
| 167 | +@ hash TEXT PRIMARY KEY, -- The SHA1 hash of content |
| 168 | +@ mtime DATE, -- Time created. Seconds since 1970 |
| 169 | +@ content TEXT -- Content intended to be concealed |
| 170 | +@ ); |
| 171 | +; |
| 172 | + |
| 173 | +/* |
| 174 | +** The reportfmt parts of the schema. This is in an extra script so |
| 175 | +** that (configure reset) can install the default report. |
| 176 | +*/ |
| 177 | +const char zRepositorySchemaReports[] = |
| 158 | 178 | @ -- An entry in this table describes a database query that generates a |
| 159 | 179 | @ -- table of tickets. |
| 160 | 180 | @ -- |
| 161 | 181 | @ CREATE TABLE reportfmt( |
| 162 | 182 | @ rn INTEGER PRIMARY KEY, -- Report number |
| | @@ -185,24 +205,10 @@ |
| 185 | 205 | @ type, |
| 186 | 206 | @ status, |
| 187 | 207 | @ subsystem, |
| 188 | 208 | @ title |
| 189 | 209 | @ FROM ticket'); |
| 190 | | -@ |
| 191 | | -@ -- Some ticket content (such as the originators email address or contact |
| 192 | | -@ -- information) needs to be obscured to protect privacy. This is achieved |
| 193 | | -@ -- by storing an SHA1 hash of the content. For display, the hash is |
| 194 | | -@ -- mapped back into the original text using this table. |
| 195 | | -@ -- |
| 196 | | -@ -- This table contains sensitive information and should not be shared |
| 197 | | -@ -- with unauthorized users. |
| 198 | | -@ -- |
| 199 | | -@ CREATE TABLE concealed( |
| 200 | | -@ hash TEXT PRIMARY KEY, -- The SHA1 hash of content |
| 201 | | -@ mtime DATE, -- Time created. Seconds since 1970 |
| 202 | | -@ content TEXT -- Content intended to be concealed |
| 203 | | -@ ); |
| 204 | 210 | ; |
| 205 | 211 | |
| 206 | 212 | const char zRepositorySchema2[] = |
| 207 | 213 | @ -- Filenames |
| 208 | 214 | @ -- |
| 209 | 215 | |