Project

General

Profile

Actions

Defect #3010

closed

Settings name field too short for some plugins (30 characters)

Added by Eric Davis over 15 years ago. Updated over 15 years ago.

Status:
Closed
Priority:
High
Assignee:
Category:
Database
Target version:
Start date:
2009-03-19
Due date:
% Done:

100%

Estimated time:
Resolution:
Fixed
Affected version:

Description

The settings.name field is current set to only allow 30 characters. This can cause problems with plugins since "plugin_" is appended to the plugin name by Settings and the plugin generator prefixs plugins with "redmine". That only leaves 16 characters for the plugin name. Since Redmine doesn't check that a plugin name is under 16 characters, I propose extending the field to 255.


Files

20090318181151_extend_settings_name.rb (235 Bytes) 20090318181151_extend_settings_name.rb Migration to extend the Settings table Eric Davis, 2009-03-19 01:04
Actions #1

Updated by Eric Davis over 15 years ago

  • Status changed from New to Closed
  • Target version set to 0.9.0
  • % Done changed from 0 to 100
  • Affected version (unused) set to devel
  • Resolution set to Fixed

Fixed in r2599. Should be released in 0.9 due to the database schema change.

Actions #2

Updated by Eric Davis over 15 years ago

I'm attaching the migration here for anyone on 0.8.x that is affected. Nothing special will need to be done when upgrading to 0.9.0, Redmine will skip this migration if it's already been applied.

Steps:

  1. Backup your database, just in case
  2. Download the file to your redmine_directory/db/migrate/ directory
  3. Run RAILS_ENV=production rake db:migrate
Actions

Also available in: Atom PDF