Project

General

Profile

« Previous | Next » 

Revision 8533

schemas/VegCore/VegCore.ERD.mwb: added stratum, plot_stratum

View differences:

schemas/VegCore/VegCore.my.sql
872 872
COLLATE = latin1_swedish_ci;
873 873

  
874 874

  
875
-- -----------------------------------------------------
876
-- Table `stratum`
877
-- -----------------------------------------------------
878
CREATE  TABLE IF NOT EXISTS `stratum` (
879
  `id` TEXT NOT NULL ,
880
  PRIMARY KEY (`id`) ,
881
  CONSTRAINT `fk_named_place_record10`
882
    FOREIGN KEY (`id` )
883
    REFERENCES `record` (`id` )
884
    ON DELETE CASCADE
885
    ON UPDATE CASCADE)
886
ENGINE = InnoDB
887
DEFAULT CHARACTER SET = latin1
888
COLLATE = latin1_swedish_ci;
875 889

  
890

  
891
-- -----------------------------------------------------
892
-- Table `plot_stratum`
893
-- -----------------------------------------------------
894
CREATE  TABLE IF NOT EXISTS `plot_stratum` (
895
  `id` TEXT NOT NULL ,
896
  `stratum` TEXT NOT NULL ,
897
  PRIMARY KEY (`id`) ,
898
  INDEX `fk_plot_stratum_stratum1` (`stratum` ASC) ,
899
  CONSTRAINT `fk_subplot_location10`
900
    FOREIGN KEY (`id` )
901
    REFERENCES `location` (`id` )
902
    ON DELETE CASCADE
903
    ON UPDATE CASCADE,
904
  CONSTRAINT `fk_plot_stratum_stratum1`
905
    FOREIGN KEY (`stratum` )
906
    REFERENCES `stratum` (`id` )
907
    ON DELETE CASCADE
908
    ON UPDATE CASCADE)
909
ENGINE = InnoDB
910
DEFAULT CHARACTER SET = latin1
911
COLLATE = latin1_swedish_ci;
912

  
913

  
914

  
876 915
SET SQL_MODE=@OLD_SQL_MODE;
877 916
SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS;
878 917
SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS;

Also available in: Unified diff