chore: remove duplicate migration directory

Keep 20260324_add_route_segments, remove the timestamped duplicate
20260324000000_add_route_segments that was accidentally added.
DB migration record updated to match the canonical name.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Jeff Emmett 2026-03-24 12:48:57 -07:00
parent 611400c3d6
commit 62945fc3a8
1 changed files with 0 additions and 29 deletions

View File

@ -1,29 +0,0 @@
-- CreateTable
CREATE TABLE "RouteSegment" (
"id" TEXT NOT NULL,
"tripId" TEXT NOT NULL,
"fromDestId" TEXT NOT NULL,
"toDestId" TEXT NOT NULL,
"profile" TEXT NOT NULL DEFAULT 'driving-car',
"distanceMeters" INTEGER,
"durationSeconds" INTEGER,
"geometry" TEXT,
"computedAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
CONSTRAINT "RouteSegment_pkey" PRIMARY KEY ("id")
);
-- CreateIndex
CREATE UNIQUE INDEX "RouteSegment_tripId_fromDestId_toDestId_profile_key" ON "RouteSegment"("tripId", "fromDestId", "toDestId", "profile");
-- CreateIndex
CREATE INDEX "RouteSegment_tripId_idx" ON "RouteSegment"("tripId");
-- AddForeignKey
ALTER TABLE "RouteSegment" ADD CONSTRAINT "RouteSegment_tripId_fkey" FOREIGN KEY ("tripId") REFERENCES "Trip"("id") ON DELETE CASCADE ON UPDATE CASCADE;
-- AddForeignKey
ALTER TABLE "RouteSegment" ADD CONSTRAINT "RouteSegment_fromDestId_fkey" FOREIGN KEY ("fromDestId") REFERENCES "Destination"("id") ON DELETE CASCADE ON UPDATE CASCADE;
-- AddForeignKey
ALTER TABLE "RouteSegment" ADD CONSTRAINT "RouteSegment_toDestId_fkey" FOREIGN KEY ("toDestId") REFERENCES "Destination"("id") ON DELETE CASCADE ON UPDATE CASCADE;