Project

General

Profile

« Previous | Next » 

Revision 8593

schemas/VegCore/VegCore.ERD.mwb: added party_list

View differences:

schemas/VegCore/VegCore.my.sql
1094 1094
COLLATE = latin1_swedish_ci;
1095 1095

  
1096 1096

  
1097
-- -----------------------------------------------------
1098
-- Table `party_list`
1099
-- -----------------------------------------------------
1100
CREATE  TABLE IF NOT EXISTS `party_list` (
1101
  `list_id` TEXT NOT NULL ,
1102
  `party` TEXT NOT NULL ,
1103
  `sort_order` INT(11) NULL ,
1104
  PRIMARY KEY (`list_id`, `party`) ,
1105
  INDEX `fk_party_list_party1` (`party` ASC) ,
1106
  INDEX `party_list_sorted` (`list_id` ASC, `sort_order` ASC) ,
1107
  CONSTRAINT `fk_collection_source101`
1108
    FOREIGN KEY ()
1109
    REFERENCES `record` ()
1110
    ON DELETE CASCADE
1111
    ON UPDATE CASCADE,
1112
  CONSTRAINT `fk_party_list_party1`
1113
    FOREIGN KEY (`party` )
1114
    REFERENCES `party` (`id` )
1115
    ON DELETE CASCADE
1116
    ON UPDATE CASCADE)
1117
ENGINE = InnoDB
1118
DEFAULT CHARACTER SET = latin1
1119
COLLATE = latin1_swedish_ci;
1097 1120

  
1121

  
1122

  
1098 1123
SET SQL_MODE=@OLD_SQL_MODE;
1099 1124
SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS;
1100 1125
SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS;

Also available in: Unified diff