re: Fwd: Re: Schema definition fails when converted to InnoDB

2003-04-04 Thread Victoria Reznichenko
On Friday 04 April 2003 12:19, Ian Hartas wrote: > >You can't add constraints referencing indices that don't exist. > >Create your indecies first. > > Constraints don't reference indexes, they reference columns. > These columns exist. When the table type is MyISAM, the syntax > is accepted. When

Re: AW: Re: Schema definition fails when converted to InnoDB

2003-04-04 Thread Peter Brawley
ED] Sent: Friday, April 04, 2003 4:41 AM Subject: AW: AW: Re: Schema definition fails when converted to InnoDB > -Ursprüngliche Nachricht- > Von: Ian Hartas [mailto:[EMAIL PROTECTED] > Gesendet: Freitag, 4. April 2003 12:33 > An: Thorsten Schmidt > Cc: [

AW: AW: Re: Schema definition fails when converted to InnoDB

2003-04-04 Thread Thorsten Schmidt
> -Ursprüngliche Nachricht- > Von: Ian Hartas [mailto:[EMAIL PROTECTED] > Gesendet: Freitag, 4. April 2003 12:33 > An: Thorsten Schmidt > Cc: [EMAIL PROTECTED] > Betreff: Re: AW: Re: Schema definition fails when converted to InnoDB > > > Thorsten, >

Re: AW: Re: Schema definition fails when converted to InnoDB

2003-04-04 Thread Ian Hartas
Thorsten, >This is right, but on these columns has to be an index set on before you can create >foreign keys with innodb. > >So, create the indexes and AFTER that the foreign keys and it should work : ) Thanks for the clarification ! However, moving the foreign key definitions after the table

Fwd: Re: Schema definition fails when converted to InnoDB

2003-04-04 Thread Ian Hartas
Gerald, >You can't add constraints referencing indices that don't exist. >Create your indecies first. Constraints don't reference indexes, they reference columns. These columns exist. When the table type is MyISAM, the syntax is accepted. When it's InnoDB - it fails. ( This schema was originall

re: Schema definition fails when converted to InnoDB

2003-04-03 Thread Victoria Reznichenko
On Thursday 03 April 2003 12:40, Ian Hartas wrote: > >Description: > > I have a database schema .sql file which is accepted when run with > MyISAM tables. If I change the tables to be type = InnoDB, then it fails > with the error message: > > mysql -u ts -p hbs ERROR 1005 at line 54: Can'

Re: Schema definition fails when converted to InnoDB

2003-04-03 Thread gerald_clark
You can't add constraints referencing indices that don't exist. Create your indecies first. Ian Hartas wrote: Description: I have a database schema .sql file which is accepted when run with MyISAM tables. If I change the tables to be type = InnoDB, then it fails with the error message