/**Begin D:\PDM_UPGRADE\PDM1\HOM_constraint.sql **/
 EXEC P_ALTERPK 'PK_HOM_ACCEPTMANAGEDETAIL', 'T_HOM_ACCEPTMANAGEDETAIL', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HOM_ACCEPTMANAGEEDETAIL') CREATE INDEX IDX_HOM_ACCEPTMANAGEEDETAIL ON T_HOM_ACCEPTMANAGEDETAIL ( FONBOARDID );


 EXEC P_ALTERPK 'PK_HOM_ACCEPTMANAGEDETAIL_L', 'T_HOM_ACCEPTMANAGEDETAIL_L', 'FPKID', '1';

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



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