 EXEC P_ALTERPK 'PK_T_LIC_MODULE_VERSION', 'T_LIC_MODULE_VERSION', 'FENTRYID', '1';

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


 EXEC P_ALTERPK 'PK_T_LIC_GROUP_VERSION', 'T_LIC_GROUP_VERSION', 'FENTRYID', '1';

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


 EXEC P_ALTERPK 'PK_T_LIC_GROUP_VERSION_L', 'T_LIC_GROUP_VERSION_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_LIC_GROUP_VERSION_L_0') CREATE INDEX IDX_LIC_GROUP_VERSION_L_0 ON T_LIC_GROUP_VERSION_L ( FENTRYID ,FLOCALEID );


 EXEC P_ALTERPK 'PK_T_LIC_MODULE_VERSION_L', 'T_LIC_MODULE_VERSION_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_LIC_MODULE_VERSION_L_0') CREATE INDEX IDX_LIC_MODULE_VERSION_L_0 ON T_LIC_MODULE_VERSION_L ( FENTRYID ,FLOCALEID );
