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;