EXEC P_ALTERPK 'PK_ER_TRIPCHANGEHISTORY', 'T_ER_TRIPCHANGEHISTORY', 'FENTRYID', '1';
IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_CHANGE_SRCENTRYID') CREATE INDEX IDX_CHANGE_SRCENTRYID ON T_ER_TRIPCHANGEHISTORY ( FSRCENTRYID );

