EXEC P_ALTERPK 'PK_T_ER_AEFTICKETTYPE', 'T_ER_AEFTICKETTYPE', 'FID', '1';

IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_ER_AEFTIC_INVTP') CREATE INDEX IDX_ER_AEFTIC_INVTP ON T_ER_AEFTICKETTYPE ( FINVOICETYPEID );