/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\BASE_constraint.sql **/
 EXEC p_AlterPK 'PK_T_BD_PROJECT_L', 'T_BD_PROJECT_L', 'FPKID', '0';
EXEC p_DropIdx 'IDX_T_BD_Project_L_FID', 'T_BD_PROJECT_L';
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_T_BD_PROJECT_L_FID') CREATE  CLUSTERED INDEX IDX_T_BD_PROJECT_L_FID ON T_BD_PROJECT_L ( FID ,FLOCALEID );

 EXEC p_AlterPK 'PK_T_BD_PROJECT', 'T_BD_PROJECT', 'FID', '0';
EXEC p_DropIdx 'IDX_T_BD_Project_Number', 'T_BD_PROJECT';
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_T_BD_PROJECT_NUMBER') CREATE  CLUSTERED INDEX IDX_T_BD_PROJECT_NUMBER ON T_BD_PROJECT ( FNUMBER );


/**End E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\BASE_constraint.sql **/
