Constraint op tabel cad_tekening aangepast voor BIS (nieuwe gedefinieerd).
svn path=/Database/trunk/; revision=6357
This commit is contained in:
@@ -31,15 +31,20 @@ CREATE_TABLE(cad_tekening, NORMAAL_PRIVILEGE)
|
||||
cad_tekening_filenaam /* excl. leading PATH (komt uit INI-file), incl. extension */
|
||||
VARCHAR2(256)
|
||||
NOT_NULL(cad_tekening_filenaam, cad_c_cad_tekening_filenaam),
|
||||
cad_tekening_type
|
||||
VARCHAR2(3)
|
||||
cad_tekening_type
|
||||
VARCHAR2(3)
|
||||
NOT_NULL (cad_tekening_type, cad_c_cad_tekening_type)
|
||||
CONSTRAINT cad_c_cad_tekening_type2 CHECK(cad_tekening_type = 'P' OR cad_tekening_type = 'C'
|
||||
OR cad_tekening_type = 'D'),
|
||||
cad_tekening_geimporteerd /* geeft aan of de tekening al is geimporteerd: */
|
||||
DATE /* NULL indien niet, anders datum van importeren */
|
||||
DEFAULT NULLDATUM,
|
||||
#ifndef BIS
|
||||
CONSTRAINT cad_u_cad_tekening UNIQUE(ins_discipline_key,alg_locatie_key,alg_verdieping_key)
|
||||
#endif //BIS
|
||||
#ifdef BIS
|
||||
CONSTRAINT cad_u_cad_tekening UNIQUE(ins_discipline_key,alg_locatie_key,cad_tekening_type)
|
||||
#endif //BIS
|
||||
);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user