/**Begin C:\anzhuang\PDM_UPGRADE\PDM1\BDTAXR_constraint.sql **/
 EXEC P_ALTERPK 'PK_BD_TAXAPTITUDES', 'T_BD_TAXAPTITUDES', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_TAXAPTITUDES_CREATEORG') CREATE INDEX IDX_TAXAPTITUDES_CREATEORG ON T_BD_TAXAPTITUDES ( FCREATEORGID );

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


 EXEC P_ALTERPK 'PK_BD_TAXAPTITUDES_L', 'T_BD_TAXAPTITUDES_L', 'FPKID', '1';

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



/**End C:\anzhuang\PDM_UPGRADE\PDM1\BDTAXR_constraint.sql **/
