 EXEC P_ALTERPK 'PK_T_BAS_MUL_SCHEME_SET', 'T_BAS_MUL_SCHEME_SET', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_BAS_MUL_SCHEME_SET' AND KSQL_INDNAME = 'IDX_MUL_SCHEME_SET_PID') CREATE INDEX IDX_MUL_SCHEME_SET_PID ON T_BAS_MUL_SCHEME_SET ( FID );


 EXEC P_ALTERPK 'PK_T_BAS_MULIMPORT_ENTITY', 'T_BAS_MULIMPORT_ENTITY', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_BAS_MULIMPORT_ENTITY' AND KSQL_INDNAME = 'IDX_MULIMPORT_ENTITY_FID') CREATE INDEX IDX_MULIMPORT_ENTITY_FID ON T_BAS_MULIMPORT_ENTITY ( FID );


 EXEC P_ALTERPK 'PK_T_BAS_MULIMPORT_SCHEME_L', 'T_BAS_MULIMPORT_SCHEME_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_BAS_MULIMPORT_SCHEME_L' AND KSQL_INDNAME = 'IDX_MULIMPORT_SCHEME_L_FID') CREATE INDEX IDX_MULIMPORT_SCHEME_L_FID ON T_BAS_MULIMPORT_SCHEME_L ( FID );


 EXEC P_ALTERPK 'PK_T_BAS_MUL_SCHEME_MAP', 'T_BAS_MUL_SCHEME_MAP', 'FDETAILID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_BAS_MUL_SCHEME_MAP' AND KSQL_INDNAME = 'IDX_MUL_SCHEME_MAP_PID') CREATE INDEX IDX_MUL_SCHEME_MAP_PID ON T_BAS_MUL_SCHEME_MAP ( FENTRYID );


 EXEC P_ALTERPK 'PK_T_BAS_MULIMPORT_SCHEME', 'T_BAS_MULIMPORT_SCHEME', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_BAS_MULIMPORT_SCHEME' AND KSQL_INDNAME = 'IDX_MULIMPORT_SCHEME_NUMBER') CREATE UNIQUE INDEX IDX_MULIMPORT_SCHEME_NUMBER ON T_BAS_MULIMPORT_SCHEME ( FNUMBER );