18 lines
764 B
SQL
18 lines
764 B
SQL
-- DropForeignKey
|
|
ALTER TABLE `user` DROP FOREIGN KEY `user_id_lamaran_magang_foreign`;
|
|
|
|
-- DropForeignKey
|
|
ALTER TABLE `user` DROP FOREIGN KEY `user_id_mahasiswa_foreign`;
|
|
|
|
-- AlterTable
|
|
ALTER TABLE `user` ADD COLUMN `intern_interest_group` VARCHAR(255) NULL,
|
|
ADD COLUMN `intern_position` VARCHAR(255) NULL,
|
|
MODIFY `id_mahasiswa` INTEGER NULL,
|
|
MODIFY `id_lamaran_magang` INTEGER NULL;
|
|
|
|
-- AddForeignKey
|
|
ALTER TABLE `user` ADD CONSTRAINT `user_id_mahasiswa_foreign` FOREIGN KEY (`id_mahasiswa`) REFERENCES `mahasiswa`(`id`) ON DELETE SET NULL ON UPDATE CASCADE;
|
|
|
|
-- AddForeignKey
|
|
ALTER TABLE `user` ADD CONSTRAINT `user_id_lamaran_magang_foreign` FOREIGN KEY (`id_lamaran_magang`) REFERENCES `lamaran_magang`(`id`) ON DELETE SET NULL ON UPDATE CASCADE;
|