/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\CAS_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_CAS_FUNDFLOWITEMEXC', 'T_CAS_FUNDFLOWITEMEXC', 'FDATAID,FUSEORGID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_T_CAS_FUNDFEXC_ORG') CREATE  CLUSTERED INDEX IDX_T_CAS_FUNDFEXC_ORG ON T_CAS_FUNDFLOWITEMEXC ( FCREATEORGID );


 EXEC P_ALTERPK 'PK_T_CAS_FUNDFLOWITEMREG', 'T_CAS_FUNDFLOWITEMREG', 'FUSEORGID,FDATAID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_T_CAS_FUNDFUREG_DATA') CREATE  CLUSTERED INDEX IDX_T_CAS_FUNDFUREG_DATA ON T_CAS_FUNDFLOWITEMREG ( FDATAID );



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