2

So I am changing the scope on a database, and need to make a field which is a foreign key, allow null values.

I am doing this in phpmyadmin, but the query is below

ALTER TABLE `nuggets` CHANGE `n_st_id` `n_st_id` INT( 11 ) NULL DEFAULT NULL 

It tells me the query ran successfully, but its showing null as no, and default as 0. Its an innodb table, any ideas why its not letting me change it?

1 Answer 1

1

It was because it was indexed, I had to remove the indexes and then set it, then reset the indexes

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.