I'm trying to execute this:
ALTER TABLE categories
ADD COLUMN country_id int unsigned DEFAULT NULL,
ADD CONSTRAINT categories_country_id_foreign FOREIGN KEY (country_id) REFERENCES countries (id) ON DELETE CASCADE ON UPDATE CASCADE;
I'm trying to execute this:
ALTER TABLE categories
ADD COLUMN country_id int unsigned DEFAULT NULL,
ADD CONSTRAINT categories_country_id_foreign FOREIGN KEY (country_id) REFERENCES countries (id) ON DELETE CASCADE ON UPDATE CASCADE;