/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\MDL_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_META_APPBLACKLIST', 'T_META_APPBLACKLIST', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_KDP_APPBLACKLIST') CREATE INDEX IDX_KDP_APPBLACKLIST ON T_META_APPBLACKLIST ( FAPPID );


 EXEC P_ALTERPK 'PK_T_META_CLOUDBLACKLIST', 'T_META_CLOUDBLACKLIST', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_KDP_CLOUDBLACKLIST') CREATE INDEX IDX_KDP_CLOUDBLACKLIST ON T_META_CLOUDBLACKLIST ( FCLOUDID );


 EXEC P_ALTERPK 'PK_T_META_ENTITYBLACKLIST', 'T_META_ENTITYBLACKLIST', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_KDP_ENTITYBLACKLIST') CREATE INDEX IDX_KDP_ENTITYBLACKLIST ON T_META_ENTITYBLACKLIST ( FENTITYID );



/**End E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\MDL_constraint.sql **/
