/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\MDL_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_META_BIZAPP_TERM', 'T_META_BIZAPP_TERM', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_META_BIZAPP_TERM_FID') CREATE INDEX IDX_META_BIZAPP_TERM_FID ON T_META_BIZAPP_TERM ( FID ,FLOCALEID );


 EXEC P_ALTERPK 'PK_T_META_FORMDESIGN_TERM', 'T_META_FORMDESIGN_TERM', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_META_DESIGNFORM_TERM_FID') CREATE INDEX IDX_META_DESIGNFORM_TERM_FID ON T_META_FORMDESIGN_TERM ( FID ,FLOCALEID );


 EXEC P_ALTERPK 'PK_T_META_ENTITYDESIGN_TERM', 'T_META_ENTITYDESIGN_TERM', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_META_DESIGNENTITY_TERM_FID') CREATE INDEX IDX_META_DESIGNENTITY_TERM_FID ON T_META_ENTITYDESIGN_TERM ( FID ,FLOCALEID );



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