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

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BDM_INVOICETYPE_MASTERID') CREATE INDEX IDX_BDM_INVOICETYPE_MASTERID ON T_BDM_INVOICETYPE_MANAGE ( FMASTERID );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BDM_INVOICETYPE_CREATEORG') CREATE  CLUSTERED INDEX IDX_BDM_INVOICETYPE_CREATEORG ON T_BDM_INVOICETYPE_MANAGE ( FCREATEORGID );


 EXEC P_ALTERPK 'PK_BDM_INVOICETYPE_MANAGE_L', 'T_BDM_INVOICETYPE_MANAGE_L', 'FPKID', '0';

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



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