Advertisement
Guest User

theatre_id doesn't exist in this table.

a guest
Apr 1st, 2015
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. CREATE TABLE `eeu23e`.`stage_show` (
  2. `stage_show_id` INT AUTO_INCREMENT NOT NULL,
  3. `name` VARCHAR(255) NOT NULL,
  4. `theatre` INT NOT NULL,
  5. `date_opened` DATE NOT NULL,
  6. `date_closed` DATE,
  7. `average_rating` DECIMAL(3,1),
  8. PRIMARY KEY (`stage_show_id`),
  9. INDEX `uq_stage_show_name`(`name` ASC),
  10. CONSTRAINT `uq_stage_show`
  11. UNIQUE KEY(`name`),
  12. INDEX `fk_stage_show_theatre_idx`(`theatre_id` ASC),
  13. CONSTRAINT `fk_theatre`
  14. FOREIGN KEY(`theatre_id`)
  15. REFERENCES `eeu23e`.`theatre`(`theatre_id`)
  16. ) ENGINE = InnoDB;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement