mantisbt:issue:7835
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| mantisbt:issue:7835 [2007/06/29 14:04] – created vboctor | mantisbt:issue:7835 [2008/10/29 04:36] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | TBD | + | ====== Add "Has patch" flag to improve usefulness of the " |
| + | |||
| + | DRAFT | ||
| + | |||
| + | ===== Database schema ===== | ||
| + | |||
| + | Current database schema for mantis_bug_file_table | ||
| + | < | ||
| + | mysql> SHOW COLUMNS FROM mantis_bug_file_table; | ||
| + | +-------------+-----------------+------+-----+---------------------+----------------+ | ||
| + | | Field | Type | Null | Key | Default | ||
| + | +-------------+-----------------+------+-----+---------------------+----------------+ | ||
| + | | id | int(7) unsigned | NO | PRI | NULL | auto_increment | | ||
| + | | bug_id | ||
| + | | title | varchar(250) | ||
| + | | description | varchar(250) | ||
| + | | diskfile | ||
| + | | filename | ||
| + | | folder | ||
| + | | filesize | ||
| + | | file_type | ||
| + | | date_added | ||
| + | | content | ||
| + | +-------------+-----------------+------+-----+---------------------+----------------+ | ||
| + | 11 rows in set (0.01 sec) | ||
| + | </ | ||
| + | |||
| + | Conversely, bugzilla 3.0 has, for the " | ||
| + | < | ||
| + | Field Type Default | ||
| + | attach_id mediumint None auto_increment a unique ID. | ||
| + | bug_id | ||
| + | creation_ts datetime 0000-00-00 00:00:00 - the creation time. | ||
| + | description mediumtext '' | ||
| + | filename varchar(100) '' | ||
| + | isobsolete tinyint 0 - Non-zero if this attachment is marked as obsolete. | ||
| + | ispatch tinyint None null non-zero if this attachment is a patch file. | ||
| + | isprivate tinyint 0 - Non-zero if this attachment is " | ||
| + | isurl tinyint 0 - Non-zero if this attachment is actually a URL. | ||
| + | mimetype mediumtext '' | ||
| + | submitter_id mediumint 0 - the userid of the attachment (foreign key profiles.userid) | ||
| + | </ | ||
| + | |||
| + | The fileds ispatch and isobsolete are used to implement the " | ||
| + | |||
| + | |||
| + | ===== Proposed action items ===== | ||
| + | * add ispatch and isobsolete fields to mantis_bug_file_table | ||
| + | |||
| + | Im going to create a patch that will hande that. | ||
| + | |||
| + | Im going to add 2 additional rows in >add file< section: | ||
| + | * description | ||
| + | * ispatch checkbox and isobsolete checkbox | ||
| + | Filenames of obsolete files will be crossed. Only user with selected threshold will be allowed to see the file before deletion. | ||
mantisbt/issue/7835.1183140269.txt.gz · Last modified: (external edit)
