From 876e97ebbcfe2e23cf412acb34182500ab008bee Mon Sep 17 00:00:00 2001 From: Marcio Mazza Date: Mon, 6 Jul 2015 17:05:30 -0300 Subject: [PATCH] Add list of sql queries to check legacy db --- scripts/legacy_db_checks.sql | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 scripts/legacy_db_checks.sql diff --git a/scripts/legacy_db_checks.sql b/scripts/legacy_db_checks.sql new file mode 100644 index 000000000..18807c68d --- /dev/null +++ b/scripts/legacy_db_checks.sql @@ -0,0 +1,4 @@ +-- These queries should return no results (or zero when counting) +select count(*) from sessao_plenaria s join expediente_materia e on s.cod_sessao_plen = e.cod_sessao_plen where s.dat_inicio_sessao != e.dat_ordem ; +select s.cod_sessao_plen, s.dat_inicio_sessao, e.dat_ordem from sessao_plenaria s join ordem_dia e on s.cod_sessao_plen = e.cod_sessao_plen where s.dat_inicio_sessao != e.dat_ordem ; +select s.cod_sessao_leg, m.* from mesa_sessao_plenaria m join sessao_plenaria s on m.cod_sessao_plen = s.cod_sessao_plen where m.cod_sessao_leg != s.cod_sessao_leg;