Commit 8c277792 authored by Misael Curril's avatar Misael Curril

se elimino todos los archivos referente a mecip, y se creao uno especifico para mapa y becas

parent d6a676d5

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

set search_path =crm;
CREATE OR REPLACE FUNCTION reset_sequence(
tablename text,
columnname text,
sequence_name text)
RETURNS void AS
$BODY$
DECLARE
BEGIN
--EXECUTE 'SELECT setval( ''' || sequence_name || ''', ' || '(SELECT MAX(' || columnname || ') FROM ' || tablename || ')' || '+1,true)';
EXECUTE 'SELECT setval( ''' || sequence_name || ''', ' || 'COALESCE((SELECT MAX(' || columnname || ') +1 FROM ' || tablename || '), 1), false)';
END;
$BODY$
LANGUAGE plpgsql VOLATILE
COST 100;
ALTER FUNCTION reset_sequence(text, text, text)
OWNER TO bpm;
select
table_name,column_name, substring(column_default FROM
E'\\(\'([a-z_.]+)') AS secuencia , reset_sequence(table_name, column_name, substring(column_default FROM
E'\\(\'([a-z_.]+)'))
from information_schema.columns where column_default like 'nextval%' and (table_name ilike 'beca%' or table_name ilike 'boletin%' or table_name ilike 'voluntariado%') and table_schema = 'crm';
\ No newline at end of file
--boletin.boletin_listado_pag
INSERT INTO sch_grupo_interes (id, descripcion) VALUES (5, 'Becas');
CREATE TABLE boletin_becas
(
beca_id integer NOT NULL,
indicador character(1),
fecha_actual date,
CONSTRAINT boletin_becas_pk PRIMARY KEY (beca_id)
)
WITH (
OIDS=FALSE
);
ALTER TABLE boletin_becas OWNER TO bpm;
-- Table: boletin_contacto_empresa
-- DROP TABLE boletin_contacto_empresa;
CREATE TABLE boletin_contacto_empresa
(
id_empresa integer NOT NULL,
id_ciudadano integer,
CONSTRAINT boletin_contacto_empresa_pk PRIMARY KEY (id_empresa)
)
WITH (
OIDS=FALSE
);
ALTER TABLE boletin_contacto_empresa OWNER TO bpm;
Y3dzbnz8f7hauF9HsYOpOqWXB0SeEiozvgwYpDU7oI/0HS0bIjdVYqtmTtutK2+zG1iR7axy3pMd
ftVSQT41S3wDvuA37JU+3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