summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorDavid Lawrence <dkl@mozilla.com>2014-10-23 18:39:52 +0200
committerDavid Lawrence <dkl@mozilla.com>2014-10-23 18:39:52 +0200
commit09ff8eeb2d7a5e92d6a29b99ecaf0984a89db35b (patch)
treea7108990922e3dc49cc1be103a225cc4c3e55648 /Bugzilla
parent0e1bc2617acbb15116fbf55646895418559d073e (diff)
downloadbugzilla-09ff8eeb2d7a5e92d6a29b99ecaf0984a89db35b.tar.gz
bugzilla-09ff8eeb2d7a5e92d6a29b99ecaf0984a89db35b.tar.xz
Bug 1062940: Please increase bmo's alias length to match bugzilla 5.0 (40 chars instead of 20)
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Bug.pm2
-rw-r--r--Bugzilla/DB/Schema.pm2
-rw-r--r--Bugzilla/Install/DB.pm3
3 files changed, 5 insertions, 2 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm
index 39a0f2596..90a9f96bb 100644
--- a/Bugzilla/Bug.pm
+++ b/Bugzilla/Bug.pm
@@ -1423,7 +1423,7 @@ sub _check_alias {
return undef if (!Bugzilla->params->{'usebugaliases'} || !$alias);
# Make sure the alias isn't too long.
- if (length($alias) > 20) {
+ if (length($alias) > 40) {
ThrowUserError("alias_too_long");
}
# Make sure the alias isn't just a number.
diff --git a/Bugzilla/DB/Schema.pm b/Bugzilla/DB/Schema.pm
index be392c105..6d7648a3d 100644
--- a/Bugzilla/DB/Schema.pm
+++ b/Bugzilla/DB/Schema.pm
@@ -295,7 +295,7 @@ use constant ABSTRACT_SCHEMA => {
remaining_time => {TYPE => 'decimal(7,2)',
NOTNULL => 1, DEFAULT => '0'},
deadline => {TYPE => 'DATETIME'},
- alias => {TYPE => 'varchar(20)'},
+ alias => {TYPE => 'varchar(40)'},
],
INDEXES => [
bugs_alias_idx => {FIELDS => ['alias'],
diff --git a/Bugzilla/Install/DB.pm b/Bugzilla/Install/DB.pm
index 4fb1f1c83..040be6630 100644
--- a/Bugzilla/Install/DB.pm
+++ b/Bugzilla/Install/DB.pm
@@ -711,6 +711,9 @@ sub update_table_definitions {
'bug_user_last_visit_last_visit_ts_idx',
['last_visit_ts']);
+ # 2014-10-?? dkl@mozilla.com - Bug 1062940
+ $dbh->bz_alter_column('bugs', 'alias', { TYPE => 'varchar(40)' });
+
################################################################
# New --TABLE-- changes should go *** A B O V E *** this point #
################################################################