/**BEGIN  **/

EXEC P_ALTERPK 'PK_T_EB_DIMCOMBINATIONENTITY', 'T_EB_DIMCOMBINATIONENTITY', 'FID', '1';
EXEC P_ALTERPK 'PK_T_EB_DIMCOMBINATIONENTITY_L', 'T_EB_DIMCOMBINATIONENTITY_L', 'FPKID', '1';

IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IX_T_EB_DIMCOMBINATIONENTITY_TYPE')
CREATE INDEX IX_T_EB_DIMCOMBINATIONENTITY_TYPE ON T_EB_DIMCOMBINATIONENTITY ( FDIMGROUPTYPE );

IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IX_T_EB_DIMCOMBINATIONENTITY_PARAM')
CREATE INDEX IX_T_EB_DIMCOMBINATIONENTITY_PARAM ON T_EB_DIMCOMBINATIONENTITY ( FREFPARAMDIMNUMS );

IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IX_T_EB_DIMCOMBINATIONENTITY_FUN')
CREATE INDEX IX_T_EB_DIMCOMBINATIONENTITY_FUN ON T_EB_DIMCOMBINATIONENTITY ( FREFFUNCTIONDIMNUMS );

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

/**END **/