UPGRADING-pre-2.8 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413
  1. This file contains only important changes made to Bugzilla before release
  2. 2.8. If you are upgrading from version older than 2.8, please read this file.
  3. If you are upgrading from 2.8 or newer, please read the Installation and
  4. Upgrade instructions in The Bugzilla Guide, found with this distribution in
  5. docs/html, docs/txt, and docs/sgml.
  6. Please note that the period in our version numbers is a place separator, not
  7. a decimal point. The 14 in version 2.14 is newer than the 8 in 2.8, for
  8. example. You should only be using this file if you have a single digit
  9. after the period in the version 2.x Bugzilla you are upgrading from.
  10. For a complete list of what changes, use Bonsai
  11. (http://cvs-mirror.mozilla.org/webtools/bonsai/cvsqueryform.cgi) to
  12. query the CVS tree. For example,
  13. http://cvs-mirror.mozilla.org/webtools/bonsai/cvsquery.cgi?module=all&branch=HEAD&branchtype=match&dir=mozilla%2Fwebtools%2Fbugzilla&file=&filetype=match&who=&whotype=match&sortby=Date&hours=2&date=week&mindate=&maxdate=&cvsroot=%2Fcvsroot
  14. will tell you what has been changed in the last week.
  15. 10/12/99 The CHANGES file is now obsolete! There is a new file called
  16. checksetup.pl. You should get in the habit of running that file every time
  17. you update your installation of Bugzilla. That file will be constantly
  18. updated to automatically update your installation to match any code changes.
  19. If you're curious as to what is going on, changes are commented in that file,
  20. at the end.
  21. Many thanks to Holger Schurig <holgerschurig@nikocity.de> for writing this
  22. script!
  23. 10/11/99 Restructured voting database to add a cached value in each
  24. bug recording how many total votes that bug has. While I'm at it, I
  25. removed the unused "area" field from the bugs database. It is
  26. distressing to realize that the bugs table has reached the maximum
  27. number of indices allowed by MySQL (16), which may make future
  28. enhancements awkward.
  29. You must feed the following to MySQL:
  30. alter table bugs drop column area;
  31. alter table bugs add column votes mediumint not null, add index (votes);
  32. You then *must* delete the data/versioncache file when you make this
  33. change, as it contains references to the "area" field. Deleting it is safe,
  34. bugzilla will correctly regenerate it.
  35. If you have been using the voting feature at all, then you will then
  36. need to update the voting cache. You can do this by visiting the
  37. sanitycheck.cgi page, and taking it up on its offer to rebuild the
  38. votes stuff.
  39. 10/7/99 Added voting ability. You must run the new script
  40. "makevotestable.sh". You must also feed the following to mysql:
  41. alter table products add column votesperuser smallint not null;
  42. 9/15/99 Apparently, newer alphas of MySQL won't allow you to have
  43. "when" as a column name. So, I have had to rename a column in the
  44. bugs_activity table. You must feed the below to mysql or you won't
  45. work at all.
  46. alter table bugs_activity change column when bug_when datetime not null;
  47. 8/16/99 Added "OpenVMS" to the list of OS's. Feed this to mysql:
  48. alter table bugs change column op_sys op_sys enum("All", "Windows 3.1", "Windows 95", "Windows 98", "Windows NT", "Mac System 7", "Mac System 7.5", "Mac System 7.6.1", "Mac System 8.0", "Mac System 8.5", "Mac System 8.6", "AIX", "BSDI", "HP-UX", "IRIX", "Linux", "FreeBSD", "OSF/1", "Solaris", "SunOS", "Neutrino", "OS/2", "BeOS", "OpenVMS", "other") not null;
  49. 6/22/99 Added an entry to the attachments table to record who the submitter
  50. was. Nothing uses this yet, but it still should be recorded.
  51. alter table attachments add column submitter_id mediumint not null;
  52. You should also run this script to populate the new field:
  53. #!/usr/bin/perl -w
  54. use diagnostics;
  55. use strict;
  56. require "globals.pl";
  57. $|=1;
  58. ConnectToDatabase();
  59. SendSQL("select bug_id, attach_id from attachments order by bug_id");
  60. my @list;
  61. while (MoreSQLData()) {
  62. my @row = FetchSQLData();
  63. push(@list, \@row);
  64. }
  65. foreach my $ref (@list) {
  66. my ($bug, $attach) = (@$ref);
  67. SendSQL("select long_desc from bugs where bug_id = $bug");
  68. my $comment = FetchOneColumn() . "Created an attachment (id=$attach)";
  69. if ($comment =~ m@-* Additional Comments From ([^ ]*)[- 0-9/:]*\nCreated an attachment \(id=$attach\)@) {
  70. print "Found $1\n";
  71. SendSQL("select userid from profiles where login_name=" .
  72. SqlQuote($1));
  73. my $userid = FetchOneColumn();
  74. if (defined $userid && $userid > 0) {
  75. SendSQL("update attachments set submitter_id=$userid where attach_id = $attach");
  76. }
  77. } else {
  78. print "Bug $bug can't find comment for attachment $attach\n";
  79. }
  80. }
  81. 6/14/99 Added "BeOS" to the list of OS's. Feed this to mysql:
  82. alter table bugs change column op_sys op_sys enum("All", "Windows 3.1", "Windows 95", "Windows 98", "Windows NT", "Mac System 7", "Mac System 7.5", "Mac System 7.6.1", "Mac System 8.0", "Mac System 8.5", "Mac System 8.6", "AIX", "BSDI", "HP-UX", "IRIX", "Linux", "FreeBSD", "OSF/1", "Solaris", "SunOS", "Neutrino", "OS/2", "BeOS", "other") not null;
  83. 5/27/99 Added support for dependency information. You must run the new
  84. "makedependenciestable.sh" script. You can turn off dependencies with the new
  85. "usedependencies" param, but it defaults to being on. Also, read very
  86. carefully the description for the new "webdotbase" param; you will almost
  87. certainly need to tweak it.
  88. 5/24/99 Added "Mac System 8.6" and "Neutrino" to the list of OS's.
  89. Feed this to mysql:
  90. alter table bugs change column op_sys op_sys enum("All", "Windows 3.1", "Windows 95", "Windows 98", "Windows NT", "Mac System 7", "Mac System 7.5", "Mac System 7.6.1", "Mac System 8.0", "Mac System 8.5", "Mac System 8.6", "AIX", "BSDI", "HP-UX", "IRIX", "Linux", "FreeBSD", "OSF/1", "Solaris", "SunOS", "Neutrino", "OS/2", "other") not null;
  91. 5/12/99 Added a pref to control how much email you get. This needs a new
  92. column in the profiles table, so feed the following to mysql:
  93. alter table profiles add column emailnotification enum("ExcludeSelfChanges", "CConly", "All") not null default "ExcludeSelfChanges";
  94. 5/5/99 Added the ability to search by creation date. To make this perform
  95. well, you ought to do the following:
  96. alter table bugs change column creation_ts creation_ts datetime not null, add index (creation_ts);
  97. 4/30/99 Added a new severity, "blocker". To get this into your running
  98. Bugzilla, do the following:
  99. alter table bugs change column bug_severity bug_severity enum("blocker", "critical", "major", "normal", "minor", "trivial", "enhancement") not null;
  100. 4/22/99 There was a bug where the long descriptions of bugs had a variety of
  101. newline characters at the end, depending on the operating system of the browser
  102. that submitted the text. This bug has been fixed, so that no further changes
  103. like that will happen. But to fix problems that have already crept into your
  104. database, you can run the following perl script (which is slow and ugly, but
  105. does work:)
  106. #!/usr/bin/perl -w
  107. use diagnostics;
  108. use strict;
  109. require "globals.pl";
  110. $|=1;
  111. ConnectToDatabase();
  112. SendSQL("select bug_id from bugs order by bug_id");
  113. my @list;
  114. while (MoreSQLData()) {
  115. push(@list, FetchOneColumn());
  116. }
  117. foreach my $id (@list) {
  118. if ($id % 50 == 0) {
  119. print "\n$id ";
  120. }
  121. SendSQL("select long_desc from bugs where bug_id = $id");
  122. my $comment = FetchOneColumn();
  123. my $orig = $comment;
  124. $comment =~ s/\r\n/\n/g; # Get rid of windows-style line endings.
  125. $comment =~ s/\r/\n/g; # Get rid of mac-style line endings.
  126. if ($comment ne $orig) {
  127. SendSQL("update bugs set long_desc = " . SqlQuote($comment) .
  128. " where bug_id = $id");
  129. print ".";
  130. } else {
  131. print "-";
  132. }
  133. }
  134. 4/8/99 Added ability to store patches with bugs. This requires a new table
  135. to store the data, so you will need to run the "makeattachmenttable.sh" script.
  136. 3/25/99 Unfortunately, the HTML::FromText CPAN module had too many bugs, and
  137. so I had to roll my own. We no longer use the HTML::FromText CPAN module.
  138. 3/24/99 (This entry has been removed. It used to say that we required the
  139. HTML::FromText CPAN module, but that's no longer true.)
  140. 3/22/99 Added the ability to query by fields which have changed within a date
  141. range. To make this perform a bit better, we need a new index:
  142. alter table bugs_activity add index (field);
  143. 3/10/99 Added 'groups' stuff, where we have different group bits that we can
  144. put on a person or on a bug. Some of the group bits control access to bugzilla
  145. features. And a person can't access a bug unless he has every group bit set
  146. that is also set on the bug. See the comments in makegroupstable.sh for a bit
  147. more info.
  148. The 'maintainer' param is now used only as an email address for people to send
  149. complaints to. The groups table is what is now used to determine permissions.
  150. You will need to run the new script "makegroupstable.sh". And then you need to
  151. feed the following lines to MySQL (replace XXX with the login name of the
  152. maintainer, the person you wish to be all-powerful).
  153. alter table bugs add column groupset bigint not null;
  154. alter table profiles add column groupset bigint not null;
  155. update profiles set groupset=0x7fffffffffffffff where login_name = XXX;
  156. 3/8/99 Added params to control how priorities are set in a new bug. You can
  157. now choose whether to let submitters of new bugs choose a priority, or whether
  158. they should just accept the default priority (which is now no longer hardcoded
  159. to "P2", but is instead a param.) The default value of the params will cause
  160. the same behavior as before.
  161. 3/3/99 Added a "disallownew" field to the products table. If non-zero, then
  162. don't let people file new bugs against this product. (This is for when a
  163. product is retired, but you want to keep the bug reports around for posterity.)
  164. Feed this to MySQL:
  165. alter table products add column disallownew tinyint not null;
  166. 2/8/99 Added FreeBSD to the list of OS's. Feed this to MySQL:
  167. alter table bugs change column op_sys op_sys enum("All", "Windows 3.1", "Windows 95", "Windows 98", "Windows NT", "Mac System 7", "Mac System 7.5", "Mac System 7.6.1", "Mac System 8.0", "Mac System 8.5", "AIX", "BSDI", "HP-UX", "IRIX", "Linux", "FreeBSD", "OSF/1", "Solaris", "SunOS", "OS/2", "other") not null;
  168. 2/4/99 Added a new column "description" to the components table, and added
  169. links to a new page which will use this to describe the components of a
  170. given product. Feed this to MySQL:
  171. alter table components add column description mediumtext not null;
  172. 2/3/99 Added a new column "initialqacontact" to the components table that gives
  173. an initial QA contact field. It may be empty if you wish the initial qa
  174. contact to be empty. If you're not using the QA contact field, you don't need
  175. to add this column, but you might as well be safe and add it anyway:
  176. alter table components add column initialqacontact tinytext not null;
  177. 2/2/99 Added a new column "milestoneurl" to the products table that gives a URL
  178. which is to describe the currently defined milestones for a product. If you
  179. don't use target milestone, you might be able to get away without adding this
  180. column, but you might as well be safe and add it anyway:
  181. alter table products add column milestoneurl tinytext not null;
  182. 1/29/99 Whoops; had a misspelled op_sys. It was "Mac System 7.1.6"; it should
  183. be "Mac System 7.6.1". It turns out I had no bugs with this value set, so I
  184. could just do the below simple command. If you have bugs with this value, you
  185. may need to do something more complicated.
  186. alter table bugs change column op_sys op_sys enum("All", "Windows 3.1", "Windows 95", "Windows 98", "Windows NT", "Mac System 7", "Mac System 7.5", "Mac System 7.6.1", "Mac System 8.0", "Mac System 8.5", "AIX", "BSDI", "HP-UX", "IRIX", "Linux", "OSF/1", "Solaris", "SunOS", "OS/2", "other") not null;
  187. 1/20/99 Added new fields: Target Milestone, QA Contact, and Status Whiteboard.
  188. These fields are all optional in the UI; there are parameters to turn them on.
  189. However, whether or not you use them, the fields need to be in the DB. There
  190. is some code that needs them, even if you don't.
  191. To update your DB to have these fields, send the following to MySQL:
  192. alter table bugs add column target_milestone varchar(20) not null,
  193. add column qa_contact mediumint not null,
  194. add column status_whiteboard mediumtext not null,
  195. add index (target_milestone), add index (qa_contact);
  196. 1/18/99 You can now query by CC. To make this perform reasonably, the CC table
  197. needs some indices. The following MySQL does the necessary stuff:
  198. alter table cc add index (bug_id), add index (who);
  199. 1/15/99 The op_sys field can now be queried by (and more easily tweaked).
  200. To make this perform reasonably, it needs an index. The following MySQL
  201. command will create the necessary index:
  202. alter table bugs add index (op_sys);
  203. 12/2/98 The op_sys and rep_platform fields have been tweaked. op_sys
  204. is now an enum, rather than having the legal values all hard-coded in
  205. perl. rep_platform now no longer allows a value of "X-Windows".
  206. Here's how I ported to the new world. This ought to work for you too.
  207. Actually, it's probably overkill. I had a lot of illegal values for op_sys
  208. in my tables, from importing bugs from strange places. If you haven't done
  209. anything funky, then much of the below will be a no-op.
  210. First, send the following commands to MySQL to make sure all your values for
  211. rep_platform and op_sys are legal in the new world..
  212. update bugs set rep_platform="Sun" where rep_platform="X-Windows" and op_sys like "Solaris%";
  213. update bugs set rep_platform="SGI" where rep_platform="X-Windows" and op_sys = "IRIX";
  214. update bugs set rep_platform="SGI" where rep_platform="X-Windows" and op_sys = "HP-UX";
  215. update bugs set rep_platform="DEC" where rep_platform="X-Windows" and op_sys = "OSF/1";
  216. update bugs set rep_platform="PC" where rep_platform="X-Windows" and op_sys = "Linux";
  217. update bugs set rep_platform="other" where rep_platform="X-Windows";
  218. update bugs set rep_platform="other" where rep_platform="";
  219. update bugs set op_sys="Mac System 7" where op_sys="System 7";
  220. update bugs set op_sys="Mac System 7.5" where op_sys="System 7.5";
  221. update bugs set op_sys="Mac System 8.0" where op_sys="8.0";
  222. update bugs set op_sys="OSF/1" where op_sys="Digital Unix 4.0";
  223. update bugs set op_sys="IRIX" where op_sys like "IRIX %";
  224. update bugs set op_sys="HP-UX" where op_sys like "HP-UX %";
  225. update bugs set op_sys="Windows NT" where op_sys like "NT %";
  226. update bugs set op_sys="OSF/1" where op_sys like "OSF/1 %";
  227. update bugs set op_sys="Solaris" where op_sys like "Solaris %";
  228. update bugs set op_sys="SunOS" where op_sys like "SunOS%";
  229. update bugs set op_sys="other" where op_sys = "Motif";
  230. update bugs set op_sys="other" where op_sys = "Other";
  231. Next, send the following commands to make sure you now have only legal
  232. entries in your table. If either of the queries do not come up empty, then
  233. you have to do more stuff like the above.
  234. select bug_id,op_sys,rep_platform from bugs where rep_platform not regexp "^(All|DEC|HP|Macintosh|PC|SGI|Sun|X-Windows|Other)$";
  235. select bug_id,op_sys,rep_platform from bugs where op_sys not regexp "^(All|Windows 3.1|Windows 95|Windows 98|Windows NT|Mac System 7|Mac System 7.5|Mac System 7.1.6|Mac System 8.0|AIX|BSDI|HP-UX|IRIX|Linux|OSF/1|Solaris|SunOS|other)$";
  236. Finally, once that's all clear, alter the table to make enforce the new legal
  237. entries:
  238. alter table bugs change column op_sys op_sys enum("All", "Windows 3.1", "Windows 95", "Windows 98", "Windows NT", "Mac System 7", "Mac System 7.5", "Mac System 7.1.6", "Mac System 8.0", "AIX", "BSDI", "HP-UX", "IRIX", "Linux", "OSF/1", "Solaris", "SunOS", "other") not null, change column rep_platform rep_platform enum("All", "DEC", "HP", "Macintosh", "PC", "SGI", "Sun", "Other");
  239. 11/20/98 Added searching of CC field. To better support this, added
  240. some indexes to the CC table. You probably want to execute the following
  241. mysql commands:
  242. alter table cc add index (bug_id);
  243. alter table cc add index (who);
  244. 10/27/98 security check for legal products in place. bug charts are not
  245. available as an option if collectstats.pl has never been run. all products
  246. get daily stats collected now. README updated: Chart::Base is listed as
  247. a requirement, instructions for using collectstats.pl included as
  248. an optional step. also got silly and added optional quips to bug
  249. reports.
  250. 10/17/98 modified README installation instructions slightly.
  251. 10/7/98 Added a new table called "products". Right now, this is used
  252. only to have a description for each product, and that description is
  253. only used when initially adding a new bug. Anyway, you *must* create
  254. the new table (which you can do by running the new makeproducttable.sh
  255. script). If you just leave it empty, things will work much as they
  256. did before, or you can add descriptions for some or all of your
  257. products.
  258. 9/15/98 Everything has been ported to Perl. NO MORE TCL. This
  259. transition should be relatively painless, except for the "params"
  260. file. This is the file that contains parameters you've set up on the
  261. editparams.cgi page. Before changing to Perl, this was a tcl-syntax
  262. file, stored in the same directory as the code; after the change to
  263. Perl, it becomes a perl-syntax file, stored in a subdirectory named
  264. "data". See the README file for more details on what version of Perl
  265. you need.
  266. So, if updating from an older version of Bugzilla, you will need to
  267. edit data/param, change the email address listed for
  268. $::param{'maintainer'}, and then go revisit the editparams.cgi page
  269. and reset all the parameters to your taste. Fortunately, your old
  270. params file will still be around, and so you ought to be able to
  271. cut&paste important bits from there.
  272. Also, note that the "whineatnews" script has changed name (it now has
  273. an extension of .pl instead of .tcl), so you'll need to change your
  274. cron job.
  275. And the "comments" file has been moved to the data directory. Just do
  276. "cat comments >> data/comments" to restore any old comments that may
  277. have been lost.
  278. 9/2/98 Changed the way password validation works. We now keep a
  279. crypt'd version of the password in the database, and check against
  280. that. (This is silly, because we're also keeping the plaintext
  281. version there, but I have plans...) Stop passing the plaintext
  282. password around as a cookie; instead, we have a cookie that references
  283. a record in a new database table, logincookies.
  284. IMPORTANT: if updating from an older version of Bugzilla, you must run
  285. the following commands to keep things working:
  286. ./makelogincookiestable.sh
  287. echo "alter table profiles add column cryptpassword varchar(64);" | mysql bugs
  288. echo "update profiles set cryptpassword = encrypt(password,substring(rand(),3, 4));" | mysql bugs