Files
Customer/onces/ALLI/alli07.sql
Peter Koerhuis 3b8d7f1dcc Migratie once-scripts van /branch naar /onces
svn path=/Customer/; revision=21207
2014-04-02 13:57:31 +00:00

58 lines
1.6 KiB
SQL

-- Customer specific once-script ALLI.
--
-- (c) 2011 SG|facilitor bv
-- $Revision$
-- $Modtime: 29-06-12 13:29 $
--
-- Support: +31 53 4800700
SET ECHO ON
SPOOL alli07.lst
SET DEFINE OFF
ALTER TABLE alli_imp_prs ADD prs_perslid_mobiel VARCHAR2 (256);
-- Alle functies staan nu in hoofdletters in Facilitor, dat is niet goed. Daarom alles verwijderen (door elke perslid op functie Onbekend (prs_srtperslid_key = 1)),
-- vervolgens alle functies verwijderen, en dan straks met nieuwe import goed te krijgen
UPDATE prs_perslid
SET prs_srtperslid_key = 1
WHERE prs_perslid_verwijder IS NULL;
UPDATE prs_srtperslid
SET prs_srtperslid_verwijder = SYSDATE
WHERE prs_srtperslid_key <> 1;
INSERT INTO fac_usrrap
(fac_usrrap_omschrijving,
fac_usrrap_view_name,
fac_usrrap_in_huidige_locatie,
fac_usrrap_template,
fac_usrrap_macro,
fac_usrrap_vraagbegindatum,
fac_usrrap_vraageinddatum,
fac_usrrap_functie,
fac_usrrap_info,
fac_functie_key,
fac_usrrap_autorefresh
)
SELECT 'Managementinformatie bestelaanvragen incl. personeelsnummer',
'alli_v_bestelling_maninfo',
NULL,
NULL,
NULL,
0,
0,
0,
'Rapport met bestelgegevens per bestelaanvraag',
fac_functie_key,
0
FROM fac_functie WHERE fac_functie_code = 'WEB_BESBAC';
BEGIN adm.systrackscript('$Workfile: alli07.sql $', '$Revision$', 1); END;
/
SPOOL OFF
@alli.sql