2022-07-29 14:37:45 +02:00
|
|
|
-- AlterTable
|
|
|
|
ALTER TABLE "Car" ALTER COLUMN "stLoseBits" SET DEFAULT 0;
|
|
|
|
|
|
|
|
-- AlterTable
|
2022-07-29 17:49:59 +02:00
|
|
|
ALTER TABLE "CarCrown" ALTER COLUMN "trail" DROP DEFAULT;
|
2022-07-29 14:37:45 +02:00
|
|
|
|
|
|
|
-- CreateTable
|
|
|
|
CREATE TABLE "GhostTrail" (
|
|
|
|
"dbId" SERIAL NOT NULL,
|
|
|
|
"carId" INTEGER NOT NULL,
|
|
|
|
"area" INTEGER NOT NULL,
|
|
|
|
"ramp" INTEGER NOT NULL,
|
|
|
|
"path" INTEGER NOT NULL,
|
2022-07-29 17:49:59 +02:00
|
|
|
"trail" BYTEA NOT NULL,
|
|
|
|
"time" INTEGER,
|
|
|
|
"driveData" BYTEA,
|
|
|
|
"trendBinaryByArea" BYTEA,
|
|
|
|
"tunePower" INTEGER NOT NULL,
|
|
|
|
"tuneHandling" INTEGER NOT NULL,
|
|
|
|
"playedAt" INTEGER NOT NULL,
|
2022-07-29 14:37:45 +02:00
|
|
|
|
|
|
|
CONSTRAINT "GhostTrail_pkey" PRIMARY KEY ("dbId")
|
|
|
|
);
|
|
|
|
|
|
|
|
-- AddForeignKey
|
|
|
|
ALTER TABLE "GhostTrail" ADD CONSTRAINT "GhostTrail_carId_fkey" FOREIGN KEY ("carId") REFERENCES "Car"("carId") ON DELETE RESTRICT ON UPDATE CASCADE;
|