/**Begin D:\d_desk\pdm\PDM_UPGRADE_1.1\PDM_UPGRADE\pdm1\BDM_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_BDM_EINVOICE_ACCOUNT', 'T_BDM_EINVOICE_ACCOUNT', 'FID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BDM_EINVOICE_ACCOUNT') CREATE  CLUSTERED INDEX IDX_BDM_EINVOICE_ACCOUNT ON T_BDM_EINVOICE_ACCOUNT ( FALLEINVOICEACCOUNT ,FTAXNO );


 EXEC P_ALTERPK 'PK_T_BDM_EINVOICE_ACCOUNT_L', 'T_BDM_EINVOICE_ACCOUNT_L', 'FPKID', '0';

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


 EXEC P_ALTERPK 'PK_T_BDM_EINVOICE_ITEMS', 'T_BDM_EINVOICE_ITEMS', 'FENTRYID', '0';

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



/**End D:\d_desk\pdm\PDM_UPGRADE_1.1\PDM_UPGRADE\pdm1\BDM_constraint.sql **/
