Feature #2963

Improve Migration class to be able to create standard fields

Added by walid almost 3 years ago. Updated over 2 years ago.

Status:Closed Start date:06/29/2011
Priority:Normal Due date:
Assignee:walid % Done:

100%

Category:Install / Update
Target version:0.83

Description

Since GLPI 0.78, each field uses a common format :
- int(11) for foreign keys
- tynint(1) for boolean
- varchar(255) for strings,
etc.

Add a standard way to create fields in the Migration class. For example :
addStandardField($table, $field_type, $default_value = false)
where :
- table : the table in which the field must be created
- field_type : VARCHAR, INTEGER, BOOLEAN, TEXT, LONGTEXT
- default_value : the default value for the field, if different from the usual one

Associated revisions

Revision 14870
Added by walid almost 3 years ago

fixed #2963 Improve Migration class to be able to create standard fields

History

Updated by walid almost 3 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Applied in changeset r14870.

Updated by moyo over 2 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF