 EXEC P_ALTERPK 'PK_T_FA_LEASE_CONTRACT_NEW_WB', 'T_FA_LEASE_CONTRACT_NEW_WB', 'FENTRYID', '1';

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

 EXEC P_ALTERPK 'PK_T_FA_LEASE_CONTRACT_NEW_LK', 'T_FA_LEASE_CONTRACT_NEW_LK', 'FPKID', '1';

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


 EXEC P_ALTERPK 'PK_T_FA_LEASE_CONTRACT_NEW_TC', 'T_FA_LEASE_CONTRACT_NEW_TC', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FA_CONTRACT_NEW_TC_FTID') CREATE INDEX IDX_FA_CONTRACT_NEW_TC_FTID ON T_FA_LEASE_CONTRACT_NEW_TC ( FTBILLID );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FA_CONTRACT_NEW_TC_FSID') CREATE INDEX IDX_FA_CONTRACT_NEW_TC_FSID ON T_FA_LEASE_CONTRACT_NEW_TC ( FSBILLID );
