/**Begin D:\temp\pdm\2\SYS_constraint.sql **/

 EXEC P_ALTERPK 'PK_T_PRIVACY_BLACKFIELD', 'T_PRIVACY_BLACKFIELD', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_PRIVACY_BLACKFIELD' AND KSQL_INDNAME = 'IDX_PRIVACY_BF_ENTITYID') CREATE INDEX IDX_PRIVACY_BF_ENTITYID ON T_PRIVACY_BLACKFIELD ( FENTITY_ID );

 EXEC P_ALTERPK 'PK_T_PRIVACY_BLACKFIELDINFO', 'T_PRIVACY_BLACKFIELDINFO', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_PRIVACY_BLACKFIELDINFO' AND KSQL_INDNAME = 'IDX_PRIVACY_BFINFO_FIELD') CREATE INDEX IDX_PRIVACY_BFINFO_FIELD ON T_PRIVACY_BLACKFIELDINFO ( FFIELD_IDEN );



/**End D:\temp\pdm\2\SYS_constraint.sql **/
