aboutsummaryrefslogtreecommitdiffstats
path: root/code_sniffer/phpbb/Sniffs
diff options
context:
space:
mode:
authorNathan <exreaction@phpbb.com>2012-07-10 17:41:27 -0500
committerNathan <exreaction@phpbb.com>2012-07-10 17:41:27 -0500
commitb25efd744db56f7565453caccf26630404db07c7 (patch)
treee13a0fca0b60ac149e5282fd0f6f60332f0690ae /code_sniffer/phpbb/Sniffs
parent08bdebb0b578df7df7a3fb451691cb927854b84e (diff)
downloadforums-b25efd744db56f7565453caccf26630404db07c7.tar
forums-b25efd744db56f7565453caccf26630404db07c7.tar.gz
forums-b25efd744db56f7565453caccf26630404db07c7.tar.bz2
forums-b25efd744db56f7565453caccPatch by Max Kanat-Alexander <mkanat@bugzilla.orgsnapshot/forums-b25efd744d
Diffstat (limited to 'Bugzilla/Ins[ticket/8323] Only disable administrative deactivated accounts from receiving PMs
Allow other types of inactive accounts to receive PMs. Remove the banned PM error message and use the string saying they do not have permission (less translation) PHPBB3-8323
Diffstat (limited to 'code_sniffer/phpbb/Sniffs')
0 files changed, 0 insertions, 0 deletions
.pm?id=b82b431228907463af9cefce2caebd3a2e12693b'>Bugzilla/Install/DB.pm
@@ -459,8 +459,10 @@ sub update_table_definitions {
_move_data_nomail_into_db();
# The products table lacked sensible defaults.
- $dbh->bz_alter_column('products', 'milestoneurl',
- {TYPE => 'TINYTEXT', NOTNULL => 1, DEFAULT => "''"});
+ if ($dbh->bz_column_info('products', 'milestoneurl') {
+ $dbh->bz_alter_column('products', 'milestoneurl',
+ {TYPE => 'TINYTEXT', NOTNULL => 1, DEFAULT => "''"});
+ }
if ($dbh->bz_column_info('products', 'disallownew')){
$dbh->bz_alter_column('products', 'disallownew',
{TYPE => 'BOOLEAN', NOTNULL => 1, DEFAULT => 0});
@@ -588,6 +590,8 @@ sub update_table_definitions {
_set_attachment_comment_types();
+ $dbh->bz_drop_column('products', 'milestoneurl');
+
################################################################
# New --TABLE-- changes should go *** A B O V E *** this point #
################################################################
@@ -623,8 +627,6 @@ sub _update_pre_checksetup_bugzillas {
{TYPE => 'BOOLEAN', NOTNULL => 1}, 0);
}
- $dbh->bz_add_column('products', 'milestoneurl',
- {TYPE => 'TINYTEXT', NOTNULL => 1}, '');
$dbh->bz_add_column('components', 'initialqacontact',
{TYPE => 'TINYTEXT'});
$dbh->bz_add_column('components', 'description',