RSS

(root)/bugzilla/2.18 : 1 : makebugtable.sh

To get this branch, use:
bzr branch /bugzilla/2.18

« back to all changes in this revision

Viewing changes to makebugtable.sh

terry%netscape.com
1998-08-26 06:14:15
Revision ID: cvs-1:terrynetscape.com-19980826131415-k3kuyhtjc7x5re87
Bugzilla source.

Show diffs side-by-side

added added

removed removed

 
1
#!/bin/sh
 
2
#
 
3
# The contents of this file are subject to the Mozilla Public License
 
4
# Version 1.0 (the "License"); you may not use this file except in
 
5
# compliance with the License. You may obtain a copy of the License at
 
6
# http://www.mozilla.org/MPL/
 
7
 
8
# Software distributed under the License is distributed on an "AS IS"
 
9
# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
 
10
# License for the specific language governing rights and limitations
 
11
# under the License.
 
12
 
13
# The Original Code is the Bugzilla Bug Tracking System.
 
14
 
15
# The Initial Developer of the Original Code is Netscape Communications
 
16
# Corporation. Portions created by Netscape are Copyright (C) 1998
 
17
# Netscape Communications Corporation. All Rights Reserved.
 
18
 
19
# Contributor(s): Terry Weissman <terry@mozilla.org>
 
20
 
 
21
mysql > /dev/null 2>/dev/null << OK_ALL_DONE
 
22
 
 
23
use bugs;
 
24
 
 
25
drop table bugs;
 
26
OK_ALL_DONE
 
27
 
 
28
mysql << OK_ALL_DONE
 
29
use bugs;
 
30
create table bugs (
 
31
bug_id mediumint not null auto_increment primary key,
 
32
assigned_to mediumint not null, # This is a comment.
 
33
bug_file_loc text,
 
34
bug_severity enum("critical", "major", "normal", "minor", "trivial", "enhancement") not null,
 
35
bug_status enum("NEW", "ASSIGNED", "REOPENED", "RESOLVED", "VERIFIED", "CLOSED") not null,
 
36
creation_ts datetime,
 
37
delta_ts timestamp,
 
38
short_desc mediumtext,
 
39
long_desc mediumtext,
 
40
op_sys tinytext,
 
41
priority enum("P1", "P2", "P3", "P4", "P5") not null,
 
42
product varchar(16) not null,
 
43
rep_platform enum("All", "DEC", "HP", "Macintosh", "PC", "SGI", "Sun", "X-Windows", "Other"),
 
44
reporter mediumint not null,
 
45
version varchar(16) not null,
 
46
area enum("BUILD", "CODE", "CONTENT", "DOC", "PERFORMANCE", "TEST", "UI", "i18n", "l10n") not null,
 
47
component varchar(50) not null,
 
48
resolution enum("", "FIXED", "INVALID", "WONTFIX", "LATER", "REMIND", "DUPLICATE", "WORKSFORME") not null,
 
49
 
 
50
 
 
51
index (assigned_to),
 
52
index (delta_ts),
 
53
index (bug_severity),
 
54
index (bug_status),
 
55
index (priority),
 
56
index (product),
 
57
index (reporter),
 
58
index (version),
 
59
index (area),
 
60
index (component),
 
61
index (resolution)
 
62
 
 
63
);
 
64
 
 
65
show columns from bugs;
 
66
show index from bugs;
 
67
 
 
68
 
 
69
OK_ALL_DONE

Loggerhead 1.18.1 is a web-based interface for Bazaar branches