-- Cxc Drops constraints alter table CXC_PAGO_NOTA_CON drop constraint CXC_PAGO_NOTA_CON_PK; alter table CXC_PAGO_NOTA_CON drop constraint Cxcencpagonota_Con_FK; alter table CXC_CHEQUES drop constraint CXC_CHEQUES_PK; alter table CXC_CHEQUES drop constraint Cxcencpagonota_Chks_FK; alter table CXC_DET_PAGO_NOTA drop constraint CXC_DET_PAGO_NOTA_PARTE_AK; alter table CXC_DET_PAGO_NOTA drop constraint Cxcencmovimiento_Detpgnt_FK; alter table CXC_DET_PAGO_NOTA drop constraint Cxcencpagonota_Detpgnt_FK; alter table CXC_ENC_PAGO_NOTA drop constraint CXC_ENC_PAGO_NOTA_PK; drop index Cxcencmovimiento_Detpgnt_FK; alter table CXC_ENC_MOVIMIENTO_CON drop constraint CXC_ENC_MOVIMIENTO_CON_PK; alter table CXC_ENC_MOVIMIENTO_CON drop constraint Cxcencmovimiento_Con_FK; alter table CXC_OBLIGACION drop constraint CXC_OBLIGACION_PK; alter table CXC_OBLIGACION drop constraint Cxcencmovimiento_Obliga_FK; alter table CXC_ENC_MOVIMIENTO drop constraint CXC_ENC_MOVIMIENTO_PK; -- Cxc Drops columns alter table CXC_PAGO_NOTA_CON drop column sucursal; alter table CXC_CHEQUES drop column sucursal; alter table CXC_DET_PAGO_NOTA drop column sucursal; alter table CXC_DET_PAGO_NOTA drop column sucursal; alter table CXC_ENC_MOVIMIENTO_CON drop column sucursal; alter table CXC_OBLIGACION drop column sucursal; -- Cxc Adds alter table CXC_ENC_PAGO_NOTA add constraint CXC_ENC_PAGO_NOTA_PK primary key (cod_cia, tip_doc, num_doc); alter table CXC_DET_PAGO_NOTA add constraint CXC_DET_PAGO_NOTA_PARTE_AK unique (cod_cia, tip_doc, num_doc, tip_doc_ref, num_doc_ref, num_parte); alter table CXC_PAGO_NOTA_CON add constraint CXC_PAGO_NOTA_CON_PK primary key (cod_cia, tip_doc, num_doc, cod_cta, ccosto); alter table CXC_CHEQUES add constraint CXC_CHEQUES_PK primary key (cod_cia, tip_doc, num_doc, num_cheque); alter table CXC_ENC_MOVIMIENTO_CON add constraint CXC_ENC_MOVIMIENTO_CON_PK primary key (cod_cia, tip_doc, num_doc, cod_cta, ccosto); alter table CXC_OBLIGACION add constraint CXC_OBLIGACION_PK primary key (cod_cia, tip_doc, num_doc, num_parte); alter table CXC_ENC_MOVIMIENTO add constraint CXC_ENC_MOVIMIENTO_PK primary key (cod_cia, tip_doc, num_doc);