Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Fragments of old tables left behind after DROP SCHEMA
- SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;
- SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
- SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL';
- DROP SCHEMA IF EXISTS `scunthorpe` ;
- CREATE SCHEMA IF NOT EXISTS `scunthorpe` DEFAULT CHARACTER SET latin1 ;
- USE `scunthorpe` ;
- DROP TABLE IF EXISTS `location` ;
- CREATE TABLE IF NOT EXISTS `location` (
- `id_location` INT NOT NULL AUTO_INCREMENT ,
- `location` VARCHAR(45) NOT NULL ,
- PRIMARY KEY (`id_location`) )
- ENGINE = InnoDB
- DEFAULT CHARACTER SET = latin1;
- DROP TABLE IF EXISTS `strand` ;
- CREATE TABLE IF NOT EXISTS `strand` (
- `id_location` INT NOT NULL ,
- `id_strand` INT NOT NULL ,
- `notes` VARCHAR(45) NOT NULL ,
- PRIMARY KEY (`id_location`, `id_strand`) ,
- INDEX `strand_location_fkey` (`id_location` ASC) ,
- CONSTRAINT `strand_location_fkey`
- FOREIGN KEY (`id_location` )
- REFERENCES `location` (`id_location` )
- ON DELETE CASCADE
- ON UPDATE CASCADE)
- ENGINE = InnoDB
- DEFAULT CHARACTER SET = latin1;
- ERROR 1005 (HY000): Can't create table '.scunthorpestrand.frm' (errno: 150)
- 111021 10:46:17 Error in foreign key constraint of table scunthorpe/straightenin
- g_temperature:
- there is no index in referenced table which would contain
- the columns as the first columns, or the data types in the
- referenced table do not match to the ones in table. Constraint:
- ,
- CONSTRAINT straightening_to_strand_fkey FOREIGN KEY (id_location, id_sequence,
- id_strand) REFERENCES strand (id_location, id_sequence, id_strand)
Add Comment
Please, Sign In to add comment