add column mysql with foreign key
snippet in sql

alter table add foreign key mysql

user6850

ALTER TABLE Orders
ADD 
FOREIGN KEY (PersonID) REFERENCES Persons(PersonID) ON DELETE CASCADE; 

alter table add column forigen key mysql

user453

ALTER TABLE tryholpz_demo07.core_modules 
ADD COLUMN belongs_to_role INT, 
ADD FOREIGN KEY core_modules(belongs_to_role) REFERENCES role_specific_modules_info(id) ON DELETE CASCADE

add column mysql with foreign key

user5915

ALTER TABLE `TABLE_NAME`
ADD COLUMN `COLUMN_NAME` BIGINT(20) UNSIGNED NULL DEFAULT NULL AFTER `AFTER_COLUMN_NAME`, 
ADD FOREIGN KEY `FOREIGN_RELATION_NAME`(`COLUMN_NAME`) REFERENCES `FOREIGN_TABLE`(`FOREIGN_COLUMN`)  ON UPDATE SET NULL ON DELETE SET NULL