/**Begin C:\PDM_UPGRADE\PDM1\PBD_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_PBD_SUPCHGPARAM', 'T_PBD_SUPCHGPARAM', 'FID', '1';

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


 EXEC P_ALTERPK 'PK_T_PBD_SUPCHGHEADCONFIG', 'T_PBD_SUPCHGHEADCONFIG', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_PBD_CHGHEADCONFIG_FID_FSEQ') CREATE INDEX IDX_PBD_CHGHEADCONFIG_FID_FSEQ ON T_PBD_SUPCHGHEADCONFIG ( FID ,FSEQ );
	
 EXEC P_ALTERPK 'PK_T_PBD_SUPCHGATTCONFIG', 'T_PBD_SUPCHGATTCONFIG', 'FENTRYID', '1';
 
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'INDEX_PBD_CHGCONFIG_FID_FSEQ') CREATE INDEX INDEX_PBD_CHGCONFIG_FID_FSEQ ON T_PBD_SUPCHGATTCONFIG ( FID ,FSEQ );

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