FCLT#77322 cad_thema_type heeft datatype VARCHAR wat NUMBER moet zijn
svn path=/Database/trunk/; revision=59620
This commit is contained in:
@@ -15,7 +15,7 @@ CREATE_TABLE(cad_tekening, 0)
|
||||
NUMBER(10)
|
||||
NOT_NULL(alg_locatie_key, cad_c_alg_locatie_key)
|
||||
CONSTRAINT cad_r_alg_locatie_key REFERENCES alg_locatie(alg_locatie_key) ON DELETE CASCADE,
|
||||
alg_verdieping_key
|
||||
alg_verdieping_key
|
||||
NUMBER(10)
|
||||
CONSTRAINT cad_r_alg_verdieping_key REFERENCES alg_verdieping(alg_verdieping_key) ON DELETE CASCADE,
|
||||
cad_tekening_filenaam
|
||||
@@ -94,7 +94,7 @@ CREATE_TABLE(cad_thema,0)
|
||||
VARCHAR2(1000)
|
||||
NOT_NULL(cad_thema_view, cad_c_cad_thema_view),
|
||||
cad_thema_type
|
||||
VARCHAR2(3)
|
||||
NUMBER(3)
|
||||
CONSTRAINT cad_c_cad_thema_type CHECK (cad_thema_type BETWEEN 1 AND 255),
|
||||
fac_functie_key
|
||||
NUMBER(10)
|
||||
|
||||
@@ -198,6 +198,16 @@ UPDATE fac_menuitems
|
||||
AND m.fac_functie_key = f.fac_functie_key
|
||||
);
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////////////// FCLT#77322
|
||||
ALTER TABLE cad_thema ADD tmp_type NUMBER(3);
|
||||
UPDATE cad_thema SET tmp_type = TO_NUMBER(cad_thema_type);
|
||||
UPDATE cad_thema SET cad_thema_type = null;
|
||||
ALTER TABLE cad_thema DROP CONSTRAINT cad_c_cad_thema_type;
|
||||
ALTER TABLE cad_thema MODIFY cad_thema_type NUMBER(3);
|
||||
ALTER TABLE cad_thema ADD CONSTRAINT cad_c_cad_thema_type CHECK (cad_thema_type between 1 and 255);
|
||||
UPDATE cad_thema SET cad_thema_type = tmp_type;
|
||||
ALTER TABLE cad_thema DROP COLUMN tmp_type;
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////////////// FCLT#00000
|
||||
|
||||
REGISTERONCE('$Id$')
|
||||
|
||||
Reference in New Issue
Block a user