ALTER TABLE `supervisoridea` ADD `researchArea_id` bigint(20) NOT NULL; ALTER TABLE `supervisoridea` ADD `hidden` bit(1) NOT NULL; -- supervisor ideas research area cant be 0, because there is no research area with id 0, so change existing supervisor ideas research area to e.g. 1