/**Begin C:\PDM_UPGRADE\PDM1\SRM_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_SRM_COMPLAINTMANAGE', 'T_SRM_COMPLAINTMANAGE', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_COMPLAINTMANAGE_SUPID') CREATE INDEX IDX_COMPLAINTMANAGE_SUPID ON T_SRM_COMPLAINTMANAGE ( FSUPPLIERID );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_COMPLAINTMANAGE_STATUS') CREATE INDEX IDX_COMPLAINTMANAGE_STATUS ON T_SRM_COMPLAINTMANAGE ( FSTATUS );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_COMPLAINTMANAGE_BILLSTATUS') CREATE INDEX IDX_COMPLAINTMANAGE_BILLSTATUS ON T_SRM_COMPLAINTMANAGE ( FBILLSTATUS );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_COMPLAINTMANAGE_HANDLES') CREATE INDEX IDX_COMPLAINTMANAGE_HANDLES ON T_SRM_COMPLAINTMANAGE ( FHANDLESTATUS );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_COMPLAINTMANAGE_MANAGE') CREATE INDEX IDX_COMPLAINTMANAGE_MANAGE ON T_SRM_COMPLAINTMANAGE ( FMANAGECOMPLAINTSTATUS );



/**End C:\PDM_UPGRADE\PDM1\SRM_constraint.sql **/
