
 EXEC P_ALTERPK 'PK_T_BD_VERSIONCFG', 'T_BD_VERSIONCFG', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_T_BD_VERSIONCFG_NUMBER') CREATE INDEX IDX_T_BD_VERSIONCFG_NUMBER ON T_BD_VERSIONCFG ( FNUMBER );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_T_BD_VERSIONCFG_BASEDATAID') CREATE INDEX IDX_T_BD_VERSIONCFG_BASEDATAID ON T_BD_VERSIONCFG ( FBASEDATAID );


 EXEC P_ALTERPK 'PK_T_BD_VERSIONCFG_L', 'T_BD_VERSIONCFG_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_T_BD_VERSIONCFG_L_FID') CREATE INDEX IDX_T_BD_VERSIONCFG_L_FID ON T_BD_VERSIONCFG_L ( FID ,FLOCALEID );
