/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\SFC_constraint.sql **/
 EXEC P_ALTERPK 'PK_FMM_CROINDUSTRYCOTYPE', 'T_FMM_CROINDUSTRYCOTYPE', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FMM_CRO_NUMBER') CREATE INDEX IDX_FMM_CRO_NUMBER ON T_FMM_CROINDUSTRYCOTYPE ( FNUMBER );


 EXEC P_ALTERPK 'PK_FMM_CROINDUSTRYCOTYPE_L', 'T_FMM_CROINDUSTRYCOTYPE_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FMM_CROL_NAME') CREATE INDEX IDX_FMM_CROL_NAME ON T_FMM_CROINDUSTRYCOTYPE_L ( FNAME );

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