/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\BASE_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_BD_SUPPLIERADD', 'T_BD_SUPPLIERADD', 'FENTRYID', '0';

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


 EXEC P_ALTERPK 'PK_T_BD_CUSTOMERADD', 'T_BD_CUSTOMERADD', 'FENTRYID', '0';

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



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