pour déploiement auto v2 via gitlab
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

29 lines
472 B

-- 1/3 : Création de la table temporaire
DROP TABLE IF EXISTS w_dbsetup
;
CREATE TEMP TABLE w_dbsetup AS
SELECT
code, label
FROM pmsi.t_dashboard
ORDER BY code LIMIT 0
;
-- 2/3 : Peuplement de la table temporaire
INSERT INTO w_dbsetup(
code,
label
)
VALUES
('CTI_CAS', 'Portfolio MCO')
;
-- 3/3 : Màj de la table iCTI
TRUNCATE pmsi.t_dashboard;
INSERT INTO pmsi.t_dashboard(code, label)
SELECT
w_dbsetup.code,
w_dbsetup.label
FROM w_dbsetup
;