-- DropForeignKey ALTER TABLE "discord_accounts" DROP CONSTRAINT "discord_accounts_user_id_fkey"; -- AlterTable ALTER TABLE "discord_accounts" ALTER COLUMN "access_token" DROP NOT NULL; -- AddForeignKey ALTER TABLE "discord_accounts" ADD CONSTRAINT "discord_accounts_user_id_fkey" FOREIGN KEY ("user_id") REFERENCES "users"("id") ON DELETE CASCADE ON UPDATE CASCADE;