/*
  Warnings:

  - You are about to drop the column `montant_paye` on the `inscriptions_pelerins` table. All the data in the column will be lost.
  - You are about to drop the column `montant_restant` on the `inscriptions_pelerins` table. All the data in the column will be lost.

*/
-- DropForeignKey
ALTER TABLE "inscriptions_pelerins" DROP CONSTRAINT "inscriptions_pelerins_pelerin_id_fkey";

-- DropForeignKey
ALTER TABLE "inscriptions_pelerins" DROP CONSTRAINT "inscriptions_pelerins_voyage_id_fkey";

-- DropIndex
DROP INDEX "inscriptions_pelerins_deleted_at_idx";

-- DropIndex
DROP INDEX "inscriptions_pelerins_pelerin_id_idx";

-- DropIndex
DROP INDEX "inscriptions_pelerins_pelerin_id_voyage_id_key";

-- DropIndex
DROP INDEX "inscriptions_pelerins_statut_idx";

-- DropIndex
DROP INDEX "inscriptions_pelerins_voyage_id_idx";

-- AlterTable
ALTER TABLE "inscriptions_pelerins" DROP COLUMN "montant_paye",
DROP COLUMN "montant_restant";

-- AddForeignKey
ALTER TABLE "inscriptions_pelerins" ADD CONSTRAINT "inscriptions_pelerins_pelerin_id_fkey" FOREIGN KEY ("pelerin_id") REFERENCES "pelerins"("id") ON DELETE RESTRICT ON UPDATE CASCADE;

-- AddForeignKey
ALTER TABLE "inscriptions_pelerins" ADD CONSTRAINT "inscriptions_pelerins_voyage_id_fkey" FOREIGN KEY ("voyage_id") REFERENCES "voyages"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
