FMHN#74150 Acties bij bezoek per gebouw kunnen beperken
svn path=/Database/trunk/; revision=58312
This commit is contained in:
@@ -10,6 +10,7 @@ INSERT INTO bez_actie (bez_actie_omschrijving) VALUES ('Ontvanger bellen');
|
||||
INSERT INTO bez_actie (bez_actie_omschrijving) VALUES ('Begeleiden naar ontvanger');
|
||||
INSERT INTO bez_actie (bez_actie_omschrijving) VALUES ('Verwijzen naar ontvanger');
|
||||
INSERT INTO bez_actie (bez_actie_omschrijving) VALUES ('Op laten halen (bellen)');
|
||||
INSERT INTO bez_actie_groep (bez_actie_groep_omschrijving) VALUES ('Default');
|
||||
|
||||
REGISTERONCE('$Id$')
|
||||
|
||||
|
||||
@@ -3,9 +3,10 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
CREATE SEQUENCE bez_s_bez_afspraak_key MINVALUE 1;
|
||||
CREATE SEQUENCE bez_s_bez_bezoekers_key MINVALUE 1;
|
||||
CREATE SEQUENCE bez_s_bez_actie_key MINVALUE 1;
|
||||
CREATE SEQUENCE bez_s_bez_afspraak_key MINVALUE 1;
|
||||
CREATE SEQUENCE bez_s_bez_bezoekers_key MINVALUE 1;
|
||||
CREATE SEQUENCE bez_s_bez_actie_groep_key MINVALUE 1;
|
||||
CREATE SEQUENCE bez_s_bez_actie_key MINVALUE 1;
|
||||
|
||||
CREATE SEQUENCE bez_s_bez_kenmerk_key MINVALUE 1000;
|
||||
CREATE SEQUENCE bez_s_bez_kenmerkwaarde_key MINVALUE 1;
|
||||
|
||||
@@ -4,6 +4,23 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
CREATE_TABLE(bez_actie_groep, 0)
|
||||
( bez_actie_groep_key
|
||||
NUMBER(10)
|
||||
PRIMARY KEY,
|
||||
bez_actie_groep_omschrijving
|
||||
VARCHAR2(64),
|
||||
bez_actie_groep_default
|
||||
NUMBER(1) DEFAULT 0 NOT NULL,
|
||||
bez_actie_groep_verwijder
|
||||
DATE
|
||||
);
|
||||
|
||||
ALTER TABLE alg_gebouw
|
||||
ADD bez_actie_groep_key
|
||||
NUMBER(10)
|
||||
REFERENCES bez_actie_groep(bez_actie_groep_key);
|
||||
|
||||
CREATE_TABLE(bez_actie,0)
|
||||
(
|
||||
bez_actie_key
|
||||
@@ -15,8 +32,12 @@ CREATE_TABLE(bez_actie,0)
|
||||
NUMBER(1),
|
||||
bez_actie_flags
|
||||
NUMBER(3) DEFAULT 0 NOT NULL, -- 0x001=oproepen, 0x002=autobadge
|
||||
bez_actie_groep_key
|
||||
NUMBER(10) NOT NULL
|
||||
REFERENCES bez_actie_groep,
|
||||
bez_actie_verwijder
|
||||
DATE
|
||||
DATE,
|
||||
CONSTRAINT BEZ_U_BEZ_ACTIE UNIQUE(bez_actie_groep_key, bez_actie_omschrijving)
|
||||
);
|
||||
|
||||
ALTER TABLE res_ruimte
|
||||
|
||||
@@ -70,6 +70,14 @@ BEGIN
|
||||
END;
|
||||
/
|
||||
|
||||
CREATE_TRIGGER(bez_t_bez_actie_groep_B_I)
|
||||
BEFORE INSERT ON bez_actie_groep
|
||||
FOR EACH ROW
|
||||
BEGIN
|
||||
UPDATE_PRIMARY_KEY(bez_actie_groep_key, bez_s_bez_actie_groep_key);
|
||||
END;
|
||||
/
|
||||
|
||||
CREATE_TRIGGER(bez_t_bez_actie_B_IU)
|
||||
BEFORE INSERT OR UPDATE ON bez_actie
|
||||
FOR EACH ROW
|
||||
|
||||
Reference in New Issue
Block a user