/**Begin C:\PDM_UPGRADE\PDM1\SRC_constraint.sql **/
 EXEC P_ALTERPK 'PK_SRC_ARCHIVEFILE', 'T_SRC_ARCHIVEFILE', 'FENTRYID', '1';

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


 EXEC P_ALTERPK 'PK_SRC_ARCHIVEFILE_FJ', 'T_SRC_ARCHIVEFILE_FJ', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_SRC_ARCHIVEFILE_FJ_EID') CREATE INDEX IDX_SRC_ARCHIVEFILE_FJ_EID ON T_SRC_ARCHIVEFILE_FJ ( FENTRYID );



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