/**Begin D:\PDM_UPGRADE\PDM1\FA_constraint.sql **/
 EXEC P_ALTERPK 'PK_FA_LEASELIABPAY_MDY', 'T_FA_LEASELIABPAY_MDY', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_INTEREST_DETAIL') CREATE INDEX IDX_INTEREST_DETAIL ON T_FA_LEASELIABPAY_MDY ( FINTERESTDETAILID );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_LEASE_CONTRACT') CREATE INDEX IDX_LEASE_CONTRACT ON T_FA_LEASELIABPAY_MDY ( FLEASECONTRACTID );


 EXEC P_ALTERPK 'PK_T_FA_LEASELIABPAY_MDY_E', 'T_FA_LEASELIABPAY_MDY_E', 'FENTRYID', '1';

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



/**End D:\PDM_UPGRADE\PDM1\FA_constraint.sql **/
