Commit 35190368799a5a4012f8b4c9dd042c6985e26881
1 parent
83a7affa
Exists in
master
Adicionado migração portabilis/3 (que cria a tabela modules.educacenso_cod_escol…
…a), cujo não havia sido incluida ao controle de versão, ocasionando um erro nos bancos de dados migrados para a nova versão.
Showing
2 changed files
with
33 additions
and
1 deletions
Show diff stats
ieducar/intranet/educar_escola_cad.php
| ... | ... | @@ -402,7 +402,7 @@ class indice extends clsCadastro |
| 402 | 402 | } |
| 403 | 403 | else |
| 404 | 404 | { |
| 405 | - $this->inputsHelper()->integer('escola_inep_id', array('label' => 'Código inep', 'required' => false)); | |
| 405 | + $this->inputsHelper()->integer('escola_inep_id', array('label' => 'Código inep', 'required' => false, 'max_length' => 14)); | |
| 406 | 406 | |
| 407 | 407 | if( $_POST ) |
| 408 | 408 | foreach( $_POST AS $campo => $val ) | ... | ... |
ieducar/misc/database/deltas/portabilis/3_cria_modules_educacenso_cod_escola.sql
0 → 100644
| ... | ... | @@ -0,0 +1,32 @@ |
| 1 | +-- // | |
| 2 | + | |
| 3 | +-- | |
| 4 | +-- Cria as tabelas modules.educacenso_cod_escola | |
| 5 | +-- | |
| 6 | +-- @author Lucas D'Avila <lucasdavila@portabilis.com.br> | |
| 7 | +-- @license @@license@@ | |
| 8 | +-- @version $Id$ | |
| 9 | +-- | |
| 10 | + | |
| 11 | +CREATE TABLE modules.educacenso_cod_escola | |
| 12 | +( | |
| 13 | + cod_escola integer NOT NULL, | |
| 14 | + cod_escola_inep bigint NOT NULL, | |
| 15 | + nome_inep character varying(255), | |
| 16 | + fonte character varying(255), | |
| 17 | + created_at timestamp without time zone NOT NULL, | |
| 18 | + updated_at timestamp without time zone, | |
| 19 | + CONSTRAINT educacenso_cod_escola_pk PRIMARY KEY (cod_escola, cod_escola_inep), | |
| 20 | + CONSTRAINT educacenso_cod_escola_cod_escola_fk FOREIGN KEY (cod_escola) | |
| 21 | + REFERENCES pmieducar.escola (cod_escola) MATCH SIMPLE | |
| 22 | + ON UPDATE NO ACTION ON DELETE CASCADE | |
| 23 | +) | |
| 24 | +WITH ( | |
| 25 | + OIDS=FALSE | |
| 26 | +); | |
| 27 | + | |
| 28 | +-- //@UNDO | |
| 29 | + | |
| 30 | +DROP TABLE modules.educacenso_cod_escola; | |
| 31 | + | |
| 32 | +-- // | |
| 0 | 33 | \ No newline at end of file | ... | ... |