405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
|
@ -- When a hyperlink occurs from one artifact to another (for example
@ -- when a check-in comment refers to a ticket) an entry is made in
@ -- the following table for that hyperlink. This table is used to
@ -- facilitate the display of "back links".
@ --
@ CREATE TABLE backlink(
@ target TEXT, -- Where the hyperlink points to
@ srctype INT, -- 0: check-in 1: ticket 2: wiki
@ srcid INT, -- EVENT.OBJID for the source document
@ mtime TIMESTAMP, -- time that the hyperlink was added. Julian day.
@ UNIQUE(target, srctype, srcid)
@ );
@ CREATE INDEX backlink_src ON backlink(srcid, srctype);
@
@ -- Each attachment is an entry in the following table. Only
|
|
|
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
|
@ -- When a hyperlink occurs from one artifact to another (for example
@ -- when a check-in comment refers to a ticket) an entry is made in
@ -- the following table for that hyperlink. This table is used to
@ -- facilitate the display of "back links".
@ --
@ CREATE TABLE backlink(
@ target TEXT, -- Where the hyperlink points to
@ srctype INT, -- 0=comment 1=ticket 2=wiki. See BKLNK_* below.
@ srcid INT, -- EVENT.OBJID for the source document
@ mtime TIMESTAMP, -- time that the hyperlink was added. Julian day.
@ UNIQUE(target, srctype, srcid)
@ );
@ CREATE INDEX backlink_src ON backlink(srcid, srctype);
@
@ -- Each attachment is an entry in the following table. Only
|
474
475
476
477
478
479
480
481
482
483
484
485
486
487
|
@ childid INT,
@ isExclude BOOLEAN DEFAULT false,
@ PRIMARY KEY(parentid, childid)
@ ) WITHOUT ROWID;
@ CREATE INDEX cherrypick_cid ON cherrypick(childid);
;
/*
** Predefined tagid values
*/
#if INTERFACE
# define TAG_BGCOLOR 1 /* Set the background color for display */
# define TAG_COMMENT 2 /* The check-in comment */
# define TAG_USER 3 /* User who made a checking */
|
>
>
>
>
>
>
>
>
>
|
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
|
@ childid INT,
@ isExclude BOOLEAN DEFAULT false,
@ PRIMARY KEY(parentid, childid)
@ ) WITHOUT ROWID;
@ CREATE INDEX cherrypick_cid ON cherrypick(childid);
;
/*
** Backlink source types
*/
#if INTERFACE
# define BKLNK_COMMENT 0 /* Check-in comment */
# define BKLNK_TICKET 1 /* Ticket body or title */
# define BKLNK_WIKI 2 /* Wiki, Technote, or Forum body */
#endif
/*
** Predefined tagid values
*/
#if INTERFACE
# define TAG_BGCOLOR 1 /* Set the background color for display */
# define TAG_COMMENT 2 /* The check-in comment */
# define TAG_USER 3 /* User who made a checking */
|