From 5c334cde63728c57d58c4d9e78bb0f4c3a22fe04 Mon Sep 17 00:00:00 2001 From: PxlLoewe <72106766+PxlLoewe@users.noreply.github.com> Date: Mon, 14 Jul 2025 14:43:14 -0700 Subject: [PATCH] db migration --- .../migration.sql | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 packages/database/prisma/schema/migrations/20250714214301_add_agl_height_to_position_log/migration.sql diff --git a/packages/database/prisma/schema/migrations/20250714214301_add_agl_height_to_position_log/migration.sql b/packages/database/prisma/schema/migrations/20250714214301_add_agl_height_to_position_log/migration.sql new file mode 100644 index 00000000..e4cf4aa5 --- /dev/null +++ b/packages/database/prisma/schema/migrations/20250714214301_add_agl_height_to_position_log/migration.sql @@ -0,0 +1,13 @@ +/* + Warnings: + + - The `country` column on the `Heliport` table would be dropped and recreated. This will lead to data loss if there is data in the column. + - Added the required column `altAGL` to the `PositionLog` table without a default value. This is not possible if the table is not empty. + +*/ +-- AlterTable +ALTER TABLE "Heliport" DROP COLUMN "country", +ADD COLUMN "country" TEXT; + +-- AlterTable +ALTER TABLE "PositionLog" ADD COLUMN "altAGL" INTEGER NOT NULL;