/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\SIM_constraint.sql **/
 EXEC P_ALTERPK 'PK_SIM_CONFIRM_BILL_E', 'T_SIM_CONFIRM_BILL_E', 'FID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_SIM_CONFIRM_BILL_E') CREATE  CLUSTERED INDEX IDX_SIM_CONFIRM_BILL_E ON T_SIM_CONFIRM_BILL_E ( FSPECIALTYPE );


 EXEC P_ALTERPK 'PK_SIM_REDINFO_WF', 'T_SIM_REDINFO_WF', 'FID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_SIM_REDINFO_WF') CREATE  CLUSTERED INDEX IDX_SIM_REDINFO_WF ON T_SIM_REDINFO_WF ( FBILLNO );


 EXEC P_ALTERPK 'PK_SIM_REDINFO_WF_ITEM', 'T_SIM_REDINFO_WF_ITEM', 'FENTRYID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_SIM_REDINFO_WF_ITEM_FK') CREATE  CLUSTERED INDEX IDX_SIM_REDINFO_WF_ITEM_FK ON T_SIM_REDINFO_WF_ITEM ( FID );



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