/**Begin D:\PDM\PDM_UPGRADE\pdm_new\FA_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_FA_CHECKRESULT', 'T_FA_CHECKRESULT', 'FENTRYID', '1';

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


 EXEC P_ALTERPK 'PK_T_FA_CLOSEOPENBOOKRECORD', 'T_FA_CLOSEOPENBOOKRECORD', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FA_CLOSEOPENBOOKRECORD') CREATE INDEX IDX_FA_CLOSEOPENBOOKRECORD ON T_FA_CLOSEOPENBOOKRECORD ( FCLOSEDPERIODID ,FASSETBOOKID );


 EXEC P_ALTERPK 'PK_T_FA_CLOSEOPENBOOKRECORD_L', 'T_FA_CLOSEOPENBOOKRECORD_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FA_CLOSEOPENBOOKRECORD_L') CREATE INDEX IDX_FA_CLOSEOPENBOOKRECORD_L ON T_FA_CLOSEOPENBOOKRECORD_L ( FID ,FLOCALEID );


/**End D:\PDM\PDM_UPGRADE\pdm_new\FA_constraint.sql **/
