Mercurial > hg > fapweb
comparison dbdefs.inc.php @ 1034:8fecb417e6a9
Reintroduce per-entry preview_type.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 20 Nov 2015 07:28:53 +0200 |
parents | e6e6be0218f8 |
children | f188caaedf0f |
comparison
equal
deleted
inserted
replaced
1033:ed22a3a3027f | 1034:8fecb417e6a9 |
---|---|
260 array("description" , "VARCHAR(".SET_LEN_COMPO_DESC.")"), | 260 array("description" , "VARCHAR(".SET_LEN_COMPO_DESC.")"), |
261 array("notes" , "VARCHAR(".SET_LEN_COMPO_NOTES.")"), | 261 array("notes" , "VARCHAR(".SET_LEN_COMPO_NOTES.")"), |
262 array("visible" , "INT", "DEFAULT 0"), | 262 array("visible" , "INT", "DEFAULT 0"), |
263 array("voting" , "INT", "DEFAULT 0"), | 263 array("voting" , "INT", "DEFAULT 0"), |
264 | 264 |
265 // Default preview type (see PREV_* in msite.inc.php) | 265 // Default preview type (see EFILE_* in msite.inc.php) for this compo. |
266 // Global for the compo (entry-specific overrides if it is != PREV_NONE) | 266 // Global for the compo (entry-specific overrides if it is != EFILE_NONE) |
267 // Preview filename/path is determined internally | |
268 array("preview_type" , "INT", "DEFAULT 0"), | 267 array("preview_type" , "INT", "DEFAULT 0"), |
269 | 268 |
270 array("show_authors" , "INT", "DEFAULT 0"), | 269 array("show_authors" , "INT", "DEFAULT 0"), |
271 // Show author(s) on compo main screen/voting page for COMPO_NORMAL compos | 270 // Show author(s) on compo main screen/voting page for COMPO_NORMAL compos |
272 // For COMPO_POINTS and COMPO_ASSIGN, show on results page or not | 271 // For COMPO_POINTS and COMPO_ASSIGN, show on results page or not |
285 array("notes" , "VARCHAR(".SET_LEN_ENTRY_NOTES.")", "DEFAULT NULL"), | 284 array("notes" , "VARCHAR(".SET_LEN_ENTRY_NOTES.")", "DEFAULT NULL"), |
286 array("flags" , "INT", "DEFAULT 0"), | 285 array("flags" , "INT", "DEFAULT 0"), |
287 array("evalue" , "INT", "DEFAULT 0"), | 286 array("evalue" , "INT", "DEFAULT 0"), |
288 array("file_id" , "INT", "DEFAULT 0"), // uploaded file id from "files" table | 287 array("file_id" , "INT", "DEFAULT 0"), // uploaded file id from "files" table |
289 array("preview_id" , "INT", "DEFAULT 0"), // uploaded preview file id from "files" table | 288 array("preview_id" , "INT", "DEFAULT 0"), // uploaded preview file id from "files" table |
289 array("preview_type" , "INT", "DEFAULT 0"), // see EFILE_*, overrides compo's general type if != 0 | |
290 array("utime" , "INT", "DEFAULT 0"), | 290 array("utime" , "INT", "DEFAULT 0"), |
291 array("owner_id" , "INT", "DEFAULT 0"), // 0 = admin, otherwise votekey id | 291 array("owner_id" , "INT", "DEFAULT 0"), // 0 = admin, otherwise votekey id |
292 ), | 292 ), |
293 | 293 |
294 "files" => array( | 294 "files" => array( |