/**Begin D:\PDM\PDM_UPGRADE\pdm_new\FA_constraint.sql **/

 EXEC P_ALTERPK 'PK_T_FA_CLOSINGCHECKITEM_L', 'T_FA_CLOSINGCHECKITEM_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FA_CLOSINGCHECKITEM_L') CREATE INDEX IDX_FA_CLOSINGCHECKITEM_L ON T_FA_CLOSINGCHECKITEM_L ( FID ,FLOCALEID );


 EXEC P_ALTERPK 'PK_T_FA_CLOSINGCHECKITEM', 'T_FA_CLOSINGCHECKITEM', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FA_CLOSINGCHECKITEM') CREATE INDEX IDX_FA_CLOSINGCHECKITEM ON T_FA_CLOSINGCHECKITEM ( FNUMBER );


/**End D:\PDM\PDM_UPGRADE\pdm_new\FA_constraint.sql **/
