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

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


 EXEC P_ALTERPK 'PK_SRM_COMPLAINTCONFIG_E', 'T_SRM_COMPLAINTCONFIG_E', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_SRM_COMPLAINTCONFIG_E_FID') CREATE INDEX IDX_SRM_COMPLAINTCONFIG_E_FID ON T_SRM_COMPLAINTCONFIG_E ( FID );


 EXEC P_ALTERPK 'PK_SRM_COMPLAINTPERSON', 'T_SRM_COMPLAINTPERSON', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_SRM_COMPLAINTPERSON_FBDID') CREATE INDEX IDX_SRM_COMPLAINTPERSON_FBDID ON T_SRM_COMPLAINTPERSON ( FBASEDATAID );



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