Opened 9 years ago

Closed 9 years ago

#150 closed defect (fixed)

Contraintes manquantes de la table t_lot_lot

Reported by: cedric Owned by: cedric
Priority: major Milestone: 45 Release JAVA0.4
Component: database Version: 0.4
Keywords: Cc: marion

Description

alter table migradour.t_lot_lot ADD CONSTRAINT c_fk_lot_dev_code FOREIGN KEY (lot_dev_code)

REFERENCES ref.tr_devenirlot_dev (dev_code) MATCH SIMPLE
ON UPDATE CASCADE ON DELETE NO ACTION;

alter table migradour.t_lot_lot ADD CONSTRAINT c_fk_lot_org_code FOREIGN KEY (lot_org_code)

REFERENCES ref.ts_organisme_org (org_code) MATCH FULL
ON UPDATE NO ACTION ON DELETE NO ACTION;

alter table migradour.t_lot_lot ADD CONSTRAINT c_fk_lot_qte_code FOREIGN KEY (lot_qte_code)

REFERENCES ref.tr_typequantitelot_qte (qte_code) MATCH SIMPLE
ON UPDATE NO ACTION ON DELETE NO ACTION;

alter table migradour.t_lot_lot ADD CONSTRAINT c_fk_lot_std_code FOREIGN KEY (lot_std_code)

REFERENCES ref.tr_stadedeveloppement_std (std_code) MATCH SIMPLE
ON UPDATE NO ACTION ON DELETE NO ACTION;

alter table migradour.t_lot_lot ADD CONSTRAINT c_fk_lot_tax_code FOREIGN KEY (lot_tax_code)

REFERENCES ref.tr_taxon_tax (tax_code) MATCH SIMPLE
ON UPDATE NO ACTION ON DELETE NO ACTION;

Change History (4)

comment:1 Changed 9 years ago by cedric

alter table smatah.t_lot_lot ADD CONSTRAINT c_fk_lot_dev_code FOREIGN KEY (lot_dev_code)

REFERENCES ref.tr_devenirlot_dev (dev_code) MATCH SIMPLE
ON UPDATE CASCADE ON DELETE NO ACTION;

alter table smatah.t_lot_lot ADD CONSTRAINT c_fk_lot_org_code FOREIGN KEY (lot_org_code)

REFERENCES ref.ts_organisme_org (org_code) MATCH FULL
ON UPDATE NO ACTION ON DELETE NO ACTION;

alter table smatah.t_lot_lot ADD CONSTRAINT c_fk_lot_qte_code FOREIGN KEY (lot_qte_code)

REFERENCES ref.tr_typequantitelot_qte (qte_code) MATCH SIMPLE
ON UPDATE NO ACTION ON DELETE NO ACTION;

alter table smatah.t_lot_lot ADD CONSTRAINT c_fk_lot_std_code FOREIGN KEY (lot_std_code)

REFERENCES ref.tr_stadedeveloppement_std (std_code) MATCH SIMPLE
ON UPDATE NO ACTION ON DELETE NO ACTION;

alter table smatah.t_lot_lot ADD CONSTRAINT c_fk_lot_tax_code FOREIGN KEY (lot_tax_code)

REFERENCES ref.tr_taxon_tax (tax_code) MATCH SIMPLE
ON UPDATE NO ACTION ON DELETE NO ACTION;

comment:2 Changed 9 years ago by cedric

update smatah.t_bilanmigrationmensuel_bme SET bme_std_code='MAD' where bme_std_code like 'MAD '

comment:3 Changed 9 years ago by cedric

begin;
UPDATE smatah.t_lot_lot set lot_std_code='MAD' where lot_std_code like 'MAD '
COMMIT;

comment:4 Changed 9 years ago by cedric

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.