/**Begin C:\PDM_UPGRADE\PDM1\PUR_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_PUR_DECLARATIONREF', 'T_PUR_DECLARATIONREF', 'FID', '1';

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


 EXEC P_ALTERPK 'PK_T_PUR_DECLARATIONREF_L', 'T_PUR_DECLARATIONREF_L', 'FPKID', '1';

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



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