EXEC P_ALTERPK 'PK_T_BAS_IMAGESTRATEGY', 'T_BAS_IMAGESTRATEGY', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'INDEX_T_BAS_IMAGESTRATEGY') CREATE INDEX INDEX_T_BAS_IMAGESTRATEGY ON T_BAS_IMAGESTRATEGY ( FLEVEL );


 EXEC P_ALTERPK 'PK_T_BAS_IMAGESTRATEGY_L', 'T_BAS_IMAGESTRATEGY_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'INDEX_T_BAS_IMAGESTRATEGY_L') CREATE INDEX INDEX_T_BAS_IMAGESTRATEGY_L ON T_BAS_IMAGESTRATEGY_L ( FLOCALEID );


 EXEC P_ALTERPK 'PK_T_BAS_IMASTRATEGYBILL', 'T_BAS_IMASTRATEGYBILL', 'FPKID', '1';

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


 EXEC P_ALTERPK 'PK_T_BAS_IMASTRATEGYORG', 'T_BAS_IMASTRATEGYORG', 'FPKID', '1';

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


 EXEC P_ALTERPK 'PK_T_BAS_SSCUNIT', 'T_BAS_SSCUNIT', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'INDEX_T_BAS_SSCUNIT') CREATE INDEX INDEX_T_BAS_SSCUNIT ON T_BAS_SSCUNIT ( FPARENTID );


 EXEC P_ALTERPK 'PK_T_BAS_SSCUNIT_L', 'T_BAS_SSCUNIT_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'INDEX_T_BAS_SSCUNIT_L') CREATE INDEX INDEX_T_BAS_SSCUNIT_L ON T_BAS_SSCUNIT_L ( FLOCALEID );


 EXEC P_ALTERPK 'PK_T_BAS_SSCUNITENTRY', 'T_BAS_SSCUNITENTRY', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'INDEX_T_BAS_SSCUNITENTRY') CREATE INDEX INDEX_T_BAS_SSCUNITENTRY ON T_BAS_SSCUNITENTRY ( FDISPLAYNAME );



