 
 ALTER TABLE ONLY t_validations
     ADD CONSTRAINT fk_t_validations_valid_status FOREIGN KEY (id_nomenclature_valid_status) REFERENCES ref_nomenclatures.t_nomenclatures(id_nomenclature) ON UPDATE CASCADE;
-
 
 ALTER TABLE ONLY t_history_actions
   ADD CONSTRAINT fk_t_history_actions_bib_tables_location FOREIGN KEY (id_table_location) REFERENCES bib_tables_location (id_table_location) ON UPDATE CASCADE;

---------
--VIEWS--
---------
CREATE VIEW gn_commons.v_meta_actions_on_object AS
WITH insert_a AS (
	SELECT

ALTER SEQUENCE bib_tables_location_id_table_location_seq OWNED BY bib_tables_location.id_table_location;
ALTER TABLE ONLY bib_tables_location ALTER COLUMN id_table_location SET DEFAULT nextval('bib_tables_location_id_table_location_seq'::regclass);
SELECT pg_catalog.setval('bib_tables_location_id_table_location_seq', 1, false);


CREATE TABLE t_medias
