
 EXEC P_ALTERPK 'PK_T_BCM_TEMPACCOUNTENTRY', 'T_BCM_TEMPACCOUNTENTRY', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BCM_TEMPACCOUNTENTRY') CREATE INDEX IDX_BCM_TEMPACCOUNTENTRY ON T_BCM_TEMPACCOUNTENTRY ( FID ,FENTRYID );


 EXEC P_ALTERPK 'PK_T_BCM_TEMPCHANGETYPEENTRY', 'T_BCM_TEMPCHANGETYPEENTRY', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BCM_TEMPCTENTRY') CREATE INDEX IDX_BCM_TEMPCTENTRY ON T_BCM_TEMPCHANGETYPEENTRY ( FID ,FENTRYID );


 EXEC P_ALTERPK 'PK_T_BCM_TEMPFLOATENTRY', 'T_BCM_TEMPFLOATENTRY', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BCM_TEMPFLOATENTRY') CREATE INDEX IDX_BCM_TEMPFLOATENTRY ON T_BCM_TEMPFLOATENTRY ( FID ,FENTRYID );


 EXEC P_ALTERPK 'PK_T_BCM_TEMPFORMULAENTRY', 'T_BCM_TEMPFORMULAENTRY', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BCM_TEMPFENTRY') CREATE INDEX IDX_BCM_TEMPFENTRY ON T_BCM_TEMPFORMULAENTRY ( FID ,FENTRYID );


 EXEC P_ALTERPK 'PK_T_BCM_TEMPSTYLESCHEME', 'T_BCM_TEMPSTYLESCHEME', 'FID', '1';

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


 EXEC P_ALTERPK 'PK_T_BCM_TEMPSTYLESCHEME_L', 'T_BCM_TEMPSTYLESCHEME_L', 'FPKID', '1';

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

