/*
  Warnings:

  - You are about to drop the column `date_emission_pasport` on the `pelerins` table. All the data in the column will be lost.
  - You are about to drop the column `date_expiration_pasport` on the `pelerins` table. All the data in the column will be lost.
  - You are about to drop the column `numero_pasport` on the `pelerins` table. All the data in the column will be lost.
  - A unique constraint covering the columns `[numeroPasport,voyage_id]` on the table `pelerins` will be added. If there are existing duplicate values, this will fail.

*/
-- DropIndex
DROP INDEX "pelerins_date_expiration_pasport_idx";

-- DropIndex
DROP INDEX "pelerins_numero_pasport_voyage_id_key";

-- AlterTable
ALTER TABLE "pelerins" DROP COLUMN "date_emission_pasport",
DROP COLUMN "date_expiration_pasport",
DROP COLUMN "numero_pasport",
ADD COLUMN     "dateEmissionPass" TIMESTAMP(3),
ADD COLUMN     "dateExpirationPass" TIMESTAMP(3),
ADD COLUMN     "numeroPasport" TEXT;

-- CreateIndex
CREATE INDEX "pelerins_dateExpirationPass_idx" ON "pelerins"("dateExpirationPass");

-- CreateIndex
CREATE UNIQUE INDEX "pelerins_numeroPasport_voyage_id_key" ON "pelerins"("numeroPasport", "voyage_id");
