EXEC P_ALTERPK 'PK_T_PBD_TRANSFERCONFIG', 'T_PBD_TRANSFERCONFIG', 'FID', '1';

IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_T_PBD_STC_FNAME') CREATE INDEX IDX_T_PBD_STC_FNAME ON T_PBD_TRANSFERCONFIG ( FNAME );

IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_T_PBD_STC_TRANSFERKEY') CREATE UNIQUE INDEX IDX_T_PBD_STC_TRANSFERKEY ON T_PBD_TRANSFERCONFIG ( FTRANSFERKEY );