/**Begin C:\PDM_UPGRADE\PDM1\SRM_constraint.sql **/
 EXEC P_ALTERPK 'PK_PUR_INDEXENTRY1SUB', 'T_PUR_INDEXENTRY1SUB', 'FDETAILID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_PUR_INDEX1ESUB_FEID_FSEQ') CREATE INDEX IDX_PUR_INDEX1ESUB_FEID_FSEQ ON T_PUR_INDEXENTRY1SUB ( FSEQ ,FENTRYID );


 EXEC P_ALTERPK 'PK_PUR_INDEXENTRY1', 'T_PUR_INDEXENTRY1', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_PUR_INDEXENTRY1_FID_FSEQ') CREATE INDEX IDX_PUR_INDEXENTRY1_FID_FSEQ ON T_PUR_INDEXENTRY1 ( FID ,FSEQ );



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