/**Begin D:\pdm\PDM_UPGRADE\pdm_new\BDM_constraint.sql **/
 EXEC P_ALTERPK 'PK_BDM_ATTACH_TYPE_L', 'T_BDM_ATTACH_TYPE_L', 'FPKID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BDM_ATTACH_TYPE_L') CREATE  CLUSTERED INDEX IDX_BDM_ATTACH_TYPE_L ON T_BDM_ATTACH_TYPE_L ( FID );


 EXEC P_ALTERPK 'PK_BDM_ATTACH_TYPE', 'T_BDM_ATTACH_TYPE', 'FID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BDM_ATTACH_TYPE') CREATE  CLUSTERED INDEX IDX_BDM_ATTACH_TYPE ON T_BDM_ATTACH_TYPE ( FNUMBER );



/**End D:\pdm\PDM_UPGRADE\pdm_new\BDM_constraint.sql **/
