Re: How Alter Table to add foreign key to Django Models

2012-12-14 Thread Javier Guerra Giraldez
On Thu, Dec 13, 2012 at 7:53 AM, laxglx wrote: > Can anybody plz tell me how to add a foreign key an existing table using SQL > Queries? >>> I got the command, nut can't understand > > ALTER TABLE distributors ADD CONSTRAINT distfk FOREIGN KEY (address) > REFERENCES addresses (address) MATCH FULL;

Re: How Alter Table to add foreign key to Django Models

2012-12-14 Thread Chris Cogdon
It doesn't look like you're using Django at all. I suggest taking your question to the support community for the database you're using. On Thursday, December 13, 2012 4:53:25 AM UTC-8, laxglx wrote: > > Can anybody plz tell me how to add a foreign key an existing table using > SQL Queries? > >

Re: How Alter Table to add foreign key to Django Models

2012-12-14 Thread Chris Cogdon
Are you sure you're using Django? This SQL statement does not look like something django would have emitted. Perhaps your query is best taken to the support community for the database you're using. Our advice here may not be relevant to you. The issue you're having is what the South package is

How Alter Table to add foreign key to Django Models

2012-12-13 Thread laxglx
Can anybody plz tell me how to add a foreign key an existing table using SQL Queries? >> I got the command, nut can't understand ALTER TABLE distributors ADD CONSTRAINT distfk FOREIGN KEY (address) REFERENCES addresses (address) MATCH FULL; What's "distfk" here if it is key name what is (add