 EXEC p_AlterPK 'PK_GBS_BIZRULE', 'T_GBS_BIZRULE', 'FID', '1';
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_GBS_BIZRULE' AND KSQL_INDNAME = 'IDX_GBS_BIZRULE')
 CREATE INDEX IDX_GBS_BIZRULE ON T_GBS_BIZRULE (FBIZRULELIBRARY );


 EXEC p_AlterPK 'PK_GBS_BIZRULELIBRARY', 'T_GBS_BIZRULELIBRARY', 'FID', '1';
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_GBS_BIZRULELIBRARY' AND KSQL_INDNAME = 'IDX_GBS_BIZRULELIBRARY')
 CREATE INDEX IDX_GBS_BIZRULELIBRARY ON T_GBS_BIZRULELIBRARY (FENTITY );


 EXEC p_AlterPK 'PK_GBS_BIZRULELIBRARY_L', 'T_GBS_BIZRULELIBRARY_L', 'FPKID', '1';
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_GBS_BIZRULELIBRARY_L' AND KSQL_INDNAME = 'IDX_GBS_BIZRULELIBRARY_L')
 CREATE INDEX IDX_GBS_BIZRULELIBRARY_L ON T_GBS_BIZRULELIBRARY_L (FLOCALEID ,FID );


 EXEC p_AlterPK 'PK_GBS_BIZRULE_L', 'T_GBS_BIZRULE_L', 'FPKID', '1';
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_GBS_BIZRULE_L' AND KSQL_INDNAME = 'IDX_GBS_BIZRULE_L')
 CREATE INDEX IDX_GBS_BIZRULE_L ON T_GBS_BIZRULE_L (FLOCALEID ,FID );


