231 |
DROP TABLE avis_consultation_tmp; |
DROP TABLE avis_consultation_tmp; |
232 |
|
|
233 |
-- |
-- |
|
-- Ajout des droits sur l'objet consultation_encours |
|
|
-- |
|
|
|
|
|
|
|
|
INSERT INTO om_widget VALUES (1, 1, 'Retours de consultations', '../scr/tab.php?obj=consultation_mes_retours', '<script type=''text/javascript''> |
|
|
$.ajax({ |
|
|
type: ''GET'', |
|
|
url:''../app/get_num_consult.php'', |
|
|
cache: false, |
|
|
success: function(html){ |
|
|
$(''#number_return'').append(html); |
|
|
} |
|
|
}); |
|
|
</script> |
|
|
<div id="number_return"></div>',2); |
|
|
|
|
|
-- |
|
234 |
-- Ajout des droits sur les nouvelles tables |
-- Ajout des droits sur les nouvelles tables |
235 |
-- |
-- |
236 |
INSERT INTO om_droit VALUES (nextval('om_droit_seq'),'service_categorie', '4'); |
INSERT INTO om_droit VALUES (nextval('om_droit_seq'),'service_categorie', '4'); |
806 |
MAXVALUE 9223372036854775807 |
MAXVALUE 9223372036854775807 |
807 |
START 1 |
START 1 |
808 |
CACHE 1; |
CACHE 1; |
809 |
|
|
810 |
|
|
811 |
|
--- |
812 |
|
--- Nouvelle gestion des tableaux de bord |
813 |
|
--- |
814 |
|
|
815 |
|
CREATE TABLE om_dashboard ( |
816 |
|
om_dashboard integer NOT NULL, |
817 |
|
om_profil integer NOT NULL, |
818 |
|
bloc character varying(10) NOT NULL, |
819 |
|
position integer, |
820 |
|
om_widget integer NOT NULL |
821 |
|
); |
822 |
|
|
823 |
|
ALTER TABLE ONLY om_dashboard |
824 |
|
ADD CONSTRAINT om_dashboard_pkey PRIMARY KEY (om_dashboard); |
825 |
|
ALTER TABLE ONLY om_dashboard |
826 |
|
ADD CONSTRAINT om_dashboard_om_profil_fkey FOREIGN KEY (om_profil) REFERENCES om_profil(om_profil); |
827 |
|
ALTER TABLE ONLY om_dashboard |
828 |
|
ADD CONSTRAINT om_dashboard_om_widget_fkey FOREIGN KEY (om_widget) REFERENCES om_widget(om_widget); |
829 |
|
|
830 |
|
CREATE SEQUENCE om_dashboard_seq |
831 |
|
START WITH 1 |
832 |
|
INCREMENT BY 1 |
833 |
|
NO MINVALUE |
834 |
|
NO MAXVALUE |
835 |
|
CACHE 1; |
836 |
|
|
837 |
|
SELECT pg_catalog.setval('om_dashboard_seq', 1, false); |
838 |
|
|
839 |
|
ALTER TABLE om_widget |
840 |
|
DROP CONSTRAINT om_widget_om_profil_fkey; |
841 |
|
|
842 |
|
ALTER TABlE om_widget DROP COLUMN om_profil; |
843 |
|
|
844 |
|
ALTER TABLE om_widget ADD COLUMN "type" character varying(40) NOT NULL DEFAULT 'web'::character varying; |
845 |
|
ALTER TABLE om_widget ALTER COLUMN "lien" SET DEFAULT ''::character varying; |
846 |
|
ALTER TABLE om_widget ALTER COLUMN "texte" SET DEFAULT ''::text; |
847 |
|
|
848 |
|
|