MySQL workBench中的模型和数据库同步期间源不可用

时间:2012-09-08 10:42:21

标签: mysql database database-design mysql-workbench

我正在尝试更新表格并将其与源同步,但源代码不可用,如您在屏幕截图中看到的那样

enter image description here

,脚本是

CREATE  TABLE IF NOT EXISTS `DAHMS`.`Answers` (
  `aid` INT(11) NOT NULL AUTO_INCREMENT ,
  `qid` INT(11) NOT NULL ,
  `sid` INT(11) NOT NULL ,
  `answer` VARCHAR(45) NOT NULL ,
  PRIMARY KEY (`aid`) ,
  INDEX `fk_Answers_Session1_idx` (`sid` ASC) ,
  INDEX `fk_Answers_Questions1_idx` (`qid` ASC) ,
  CONSTRAINT `fk_Answers_Session1`
    FOREIGN KEY (`sid` )
    REFERENCES `DAHMS`.`Session` (`sid` )
    ON DELETE NO ACTION
    ON UPDATE NO ACTION,
  CONSTRAINT `fk_Answers_Questions1`
    FOREIGN KEY (`qid` )
    REFERENCES `DAHMS`.`Questions` (`qid` )
    ON DELETE NO ACTION
    ON UPDATE NO ACTION)
ENGINE = InnoDB
DEFAULT CHARACTER SET = latin1
COLLATE = latin1_swedish_ci

0 个答案:

没有答案