Commit f013ea54802fb69337653eb033e74502c68e5d1f

Authored by Ricardo Bortotto
1 parent 1e9b08f8
Exists in master

Alterado o tamanho do campo Nome do cadastro de componentes curriculares para 20…

…0 caracteres Closes #19.
ieducar/misc/database/deltas/portabilis/52_altera_tamanho_campo_nome_componente_curricular.sql 0 → 100644
... ... @@ -0,0 +1,16 @@
  1 + -- //
  2 +
  3 + --
  4 + -- Altera tamanho da coluna 'nome' da tabela modules.componente_curricular
  5 + --
  6 + -- @author Ricardo Bortolotto Dagostim <ricardo@portabilis.com.br>
  7 + -- @license @@license@@
  8 + -- @version $Id$
  9 +
  10 + ALTER TABLE modules.componente_curricular ALTER COLUMN nome type character varying(200);
  11 +
  12 + -- //@UNDO
  13 +
  14 + ALTER TABLE modules.componente_curricular ALTER COLUMN nome type character varying(100);
  15 +
  16 + -- //
... ...
ieducar/modules/ComponenteCurricular/Model/Componente.php
... ... @@ -89,7 +89,7 @@ class ComponenteCurricular_Model_Componente extends CoreExt_Entity
89 89  
90 90 return array(
91 91 'instituicao' => new CoreExt_Validate_Choice(array('choices' => $instituicoes)),
92   - 'nome' => new CoreExt_Validate_String(array('min' => 5, 'max' => 100)),
  92 + 'nome' => new CoreExt_Validate_String(array('min' => 5, 'max' => 200)),
93 93 'abreviatura' => new CoreExt_Validate_String(array('min' => 2, 'max' => 15)),
94 94 'tipo_base' => new CoreExt_Validate_Choice(array('choices' => $tipos)),
95 95 'area_conhecimento' => new CoreExt_Validate_Choice(array('choices' => $areas)),
... ... @@ -103,4 +103,4 @@ class ComponenteCurricular_Model_Componente extends CoreExt_Entity
103 103 {
104 104 return $this->nome;
105 105 }
106   -}
107 106 \ No newline at end of file
  107 +}
... ...
ieducar/modules/ComponenteCurricular/Views/EditController.php
... ... @@ -93,7 +93,7 @@ class EditController extends Core_Controller_Page_EditController
93 93  
94 94 // Nome
95 95 $this->campoTexto('nome', $this->_getLabel('nome'), $this->getEntity()->nome,
96   - 50, 100, TRUE, FALSE, FALSE, $this->_getHelp('nome'));
  96 + 50, 200, TRUE, FALSE, FALSE, $this->_getHelp('nome'));
97 97  
98 98 // Abreviatura
99 99 $this->campoTexto('abreviatura', $this->_getLabel('abreviatura'),
... ... @@ -111,4 +111,4 @@ class EditController extends Core_Controller_Page_EditController
111 111 $this->campoLista('area_conhecimento', $this->_getLabel('area_conhecimento'),
112 112 $areas, $this->getEntity()->get('area_conhecimento'));
113 113 }
114   -}
115 114 \ No newline at end of file
  115 +}
... ...