From a5b6f6c86f03e24c865c6b3d6699ed059ef67ac7 Mon Sep 17 00:00:00 2001 From: Felipe Vieira Date: Mon, 5 Dec 2011 17:20:37 +0000 Subject: [PATCH] alterando migration para subida em production --- sigi/migrations/20111125_casas_funcionario.sql | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sigi/migrations/20111125_casas_funcionario.sql b/sigi/migrations/20111125_casas_funcionario.sql index cc4eb1b..9c14e5d 100644 --- a/sigi/migrations/20111125_casas_funcionario.sql +++ b/sigi/migrations/20111125_casas_funcionario.sql @@ -26,4 +26,7 @@ INSERT INTO contatos_telefone (numero, tipo, content_type_id, object_id, codigo_ ALTER TABLE "casas_casalegislativa" DROP COLUMN presidente; ALTER TABLE "casas_casalegislativa" DROP COLUMN telefone; +-- retirando null de algumas colunas +ALTER TABLE "contatos_telefone" ALTER COLUMN codigo_area DROP NOT NULL; +ALTER TABLE "contatos_telefone" ALTER COLUMN codigo_nota DROP NOT NULL; COMMIT;