/**Begin D:\PDM_UPGRADE\PDM1\FCS_constraint.sql **/
 EXEC P_ALTERPK 'PK_FCS_ERRORFIELD_MAP_L', 'T_FCS_ERRORFIELD_MAP_L', 'FPKID', '1';

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


 EXEC P_ALTERPK 'PK_FCS_RISKTRADE_WARN', 'T_FCS_RISKTRADE_WARN', 'FID', '1';

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


 EXEC P_ALTERPK 'PK_FCS_RISKTRADE_WARN_L', 'T_FCS_RISKTRADE_WARN_L', 'FPKID', '1';

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



/**End D:\PDM_UPGRADE\PDM1\FCS_constraint.sql **/
