mirror of
https://github.com/jorgev259/soc_site-astro.git
synced 2025-06-29 07:57:41 +00:00
5 lines
244 B
SQL
5 lines
244 B
SQL
-- DropForeignKey
|
|
ALTER TABLE `Session` DROP FOREIGN KEY `Session_id_fkey`;
|
|
|
|
-- AddForeignKey
|
|
ALTER TABLE `Session` ADD CONSTRAINT `Session_userId_fkey` FOREIGN KEY (`userId`) REFERENCES `users`(`username`) ON DELETE CASCADE ON UPDATE CASCADE;
|