begin;
create schema dom;
create schema comun;
create schema ed_comun;
create schema script;

--crea las tablas comunes 
\i /home/cbd/v2/def/1dom.txt
\i /home/cbd/v2/def/2comun.txt
\i /home/cbd/v2/edicion/2edcomun.txt

--carga las funciones
\i /home/cbd/script/carga_funciones.txt

--crea los disparadores sobre las tablas no espaciales
\i /home/cbd/script/fdisparadoras/crea_disparadores_comun.txt

commit;
