diff --git a/ieducar/misc/database/deltas/portabilis/74_aumenta_campo_area_conhecimento.sql b/ieducar/misc/database/deltas/portabilis/74_aumenta_campo_area_conhecimento.sql new file mode 100644 index 0000000..198b01c --- /dev/null +++ b/ieducar/misc/database/deltas/portabilis/74_aumenta_campo_area_conhecimento.sql @@ -0,0 +1,16 @@ +-- // + +-- +-- Altera tamanho do campo setando limite para 60 caracteres +-- +-- @author Lucas Schmoeller da Silva +-- @license @@license@@ +-- @version $Id$ + +ALTER TABLE modules.area_conhecimento ALTER COLUMN nome type character varying(60); + +-- //@UNDO + +ALTER TABLE modules.area_conhecimento ALTER COLUMN nome type character varying(40); + +-- // \ No newline at end of file diff --git a/ieducar/misc/database/migrations/20150902143638_altera_tamanho_campo_area_conhecimento.php b/ieducar/misc/database/migrations/20150902143638_altera_tamanho_campo_area_conhecimento.php new file mode 100644 index 0000000..8a70296 --- /dev/null +++ b/ieducar/misc/database/migrations/20150902143638_altera_tamanho_campo_area_conhecimento.php @@ -0,0 +1,19 @@ +execute('ALTER TABLE modules.area_conhecimento ALTER COLUMN nome type character varying(60)'); + } +} diff --git a/ieducar/modules/AreaConhecimento/Model/Area.php b/ieducar/modules/AreaConhecimento/Model/Area.php index 8522bba..ffa3571 100644 --- a/ieducar/modules/AreaConhecimento/Model/Area.php +++ b/ieducar/modules/AreaConhecimento/Model/Area.php @@ -56,7 +56,7 @@ class AreaConhecimento_Model_Area extends CoreExt_Entity return array( 'instituicao' => new CoreExt_Validate_Choice(array('choices' => $instituicoes)), - 'nome' => new CoreExt_Validate_String(array('min' => 5, 'max' => 40)) + 'nome' => new CoreExt_Validate_String(array('min' => 5, 'max' => 60)) ); } diff --git a/ieducar/modules/AreaConhecimento/Views/EditController.php b/ieducar/modules/AreaConhecimento/Views/EditController.php index d4ad4f0..174b623 100644 --- a/ieducar/modules/AreaConhecimento/Views/EditController.php +++ b/ieducar/modules/AreaConhecimento/Views/EditController.php @@ -94,6 +94,6 @@ class EditController extends Core_Controller_Page_EditController // Nome $this->campoTexto('nome', $this->_getLabel('nome'), $this->getEntity()->nome, - 40, 40, TRUE, FALSE, FALSE, $this->_getHelp('nome')); + 60, 60, TRUE, FALSE, FALSE, $this->_getHelp('nome')); } } \ No newline at end of file -- libgit2 0.21.2