/*
  Warnings:

  - Changed the type of `visitors_team` on the `Matches` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required.

*/
-- DropIndex
DROP INDEX "Matches_home_team_key";

-- AlterTable
ALTER TABLE "Matches" DROP COLUMN "visitors_team",
ADD COLUMN     "visitors_team" INTEGER NOT NULL;

-- AddForeignKey
ALTER TABLE "Matches" ADD CONSTRAINT "Matches_visitors_team_fkey" FOREIGN KEY ("visitors_team") REFERENCES "teams"("team_id") ON DELETE RESTRICT ON UPDATE CASCADE;
