Commit 6c3feebc authored by Misael Curril's avatar Misael Curril

ACTUALIZACION DEL SCRIPTS PARA DE BECAS NUEVAS CARGADAS.

parent bb87fa5e
......@@ -21,8 +21,3 @@ EXECUTE 'SELECT setval( ''' || sequence_name || ''', ' || 'COALESCE((SELECT MAX(
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
---ACTUALIZA LA CANTIDAD DE DOCUMENTOS INSERTADOS EN EL BPM
set search_path=crm;
UPDATE becas set total_doc=1 where id=131;
UPDATE becas set total_doc=2 where id=135;
UPDATE becas set total_doc=5 where id=1198;
......
......@@ -121,19 +121,13 @@ COMMENT ON COLUMN mapa_cooperante_detalle.dirigido_a IS '
';
ALTER TABLE mapa_proyecto ADD COLUMN codigo_autogenerado integer;
ALTER TABLE mapa_proyecto ADD COLUMN anho integer;
ALTER TABLE mapa_proyecto ALTER COLUMN descripcion TYPE text;
ALTER TABLE mapa_proyecto ALTER COLUMN nombre_proyecto TYPE text;
ALTER TABLE mapa_proyecto ALTER COLUMN objetivo TYPE text;
ALTER TABLE mapa_proyecto ALTER COLUMN resultado TYPE text;
ALTER TABLE crm.mapa_proyecto ADD COLUMN codigo_autogenerado integer;
ALTER TABLE crm.mapa_proyecto ADD COLUMN anho integer;
CREATE INDEX ciudadano_email_idx
ON ciudadano
ON crm.ciudadano
USING btree
(email COLLATE pg_catalog."default");
ALTER TABLE crm.mapa_cooperante_detalle ADD COLUMN total_doc integer;
\ No newline at end of file
(email COLLATE pg_catalog."default");
\ No newline at end of file
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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment