| | @@ -152,10 +152,22 @@ |
| 152 | 152 | @ -- Artifacts that should not be pushed are stored in the "private" |
| 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 | +@ |
| 158 | +@ -- An entry in this table describes a database query that generates a |
| 159 | +@ -- table of tickets. |
| 160 | +@ -- |
| 161 | +@ CREATE TABLE reportfmt( |
| 162 | +@ rn INTEGER PRIMARY KEY, -- Report number |
| 163 | +@ owner TEXT, -- Owner of this report format (not used) |
| 164 | +@ title TEXT UNIQUE, -- Title of this report |
| 165 | +@ mtime DATE, -- Last modified. seconds since 1970 |
| 166 | +@ cols TEXT, -- A color-key specification |
| 167 | +@ sqlcode TEXT -- An SQL SELECT statement for this report |
| 168 | +@ ); |
| 157 | 169 | @ |
| 158 | 170 | @ -- Some ticket content (such as the originators email address or contact |
| 159 | 171 | @ -- information) needs to be obscured to protect privacy. This is achieved |
| 160 | 172 | @ -- by storing an SHA1 hash of the content. For display, the hash is |
| 161 | 173 | @ -- mapped back into the original text using this table. |
| | @@ -169,25 +181,14 @@ |
| 169 | 181 | @ content TEXT -- Content intended to be concealed |
| 170 | 182 | @ ); |
| 171 | 183 | ; |
| 172 | 184 | |
| 173 | 185 | /* |
| 174 | | -** The reportfmt parts of the schema. This is in an extra script so |
| 175 | | -** that (configure reset) can install the default report. |
| 186 | +** The default reportfmt entry for the schema. This is in an extra |
| 187 | +** script so that (configure reset) can install the default report. |
| 176 | 188 | */ |
| 177 | | -const char zRepositorySchemaReports[] = |
| 178 | | -@ -- An entry in this table describes a database query that generates a |
| 179 | | -@ -- table of tickets. |
| 180 | | -@ -- |
| 181 | | -@ CREATE TABLE reportfmt( |
| 182 | | -@ rn INTEGER PRIMARY KEY, -- Report number |
| 183 | | -@ owner TEXT, -- Owner of this report format (not used) |
| 184 | | -@ title TEXT UNIQUE, -- Title of this report |
| 185 | | -@ mtime DATE, -- Last modified. seconds since 1970 |
| 186 | | -@ cols TEXT, -- A color-key specification |
| 187 | | -@ sqlcode TEXT -- An SQL SELECT statement for this report |
| 188 | | -@ ); |
| 189 | +const char zRepositorySchemaDefaultReports[] = |
| 189 | 190 | @ INSERT INTO reportfmt(title,mtime,cols,sqlcode) |
| 190 | 191 | @ VALUES('All Tickets',julianday('1970-01-01'),'#ffffff Key: |
| 191 | 192 | @ #f2dcdc Active |
| 192 | 193 | @ #e8e8e8 Review |
| 193 | 194 | @ #cfe8bd Fixed |
| 194 | 195 | |