DELETE FROM "PositionLog";
DELETE FROM "ConnectedAircraft";

ALTER TABLE "PositionLog" ADD COLUMN     "connectedAircraftId" INTEGER NOT NULL;

-- AddForeignKey
ALTER TABLE "PositionLog" ADD CONSTRAINT "PositionLog_connectedAircraftId_fkey" FOREIGN KEY ("connectedAircraftId") REFERENCES "ConnectedAircraft"("id") ON DELETE CASCADE ON UPDATE CASCADE;
