Sticky headers fix, added Heliports

This commit is contained in:
PxlLoewe
2025-07-13 00:30:46 -07:00
parent 0730737bbe
commit 768c84f171
27 changed files with 432 additions and 22 deletions

View File

@@ -0,0 +1,18 @@
-- CreateTable
CREATE TABLE "Heliport" (
"id" SERIAL NOT NULL,
"state" TEXT NOT NULL,
"stateShort" TEXT NOT NULL,
"siteName" TEXT NOT NULL,
"siteNameSub26" TEXT NOT NULL,
"siteNameSub21" TEXT NOT NULL,
"siteElevation" DOUBLE PRECISION NOT NULL,
"siteElevationUnit" TEXT NOT NULL,
"info" TEXT NOT NULL,
"lat" DOUBLE PRECISION NOT NULL,
"lng" DOUBLE PRECISION NOT NULL,
"country" TEXT NOT NULL,
"hospital" TEXT NOT NULL,
CONSTRAINT "Heliport_pkey" PRIMARY KEY ("id")
);

View File

@@ -0,0 +1,2 @@
-- AlterEnum
ALTER TYPE "PERMISSION" ADD VALUE 'ADMIN_HELIPORT';

View File

@@ -0,0 +1,11 @@
/*
Warnings:
- Added the required column `type` to the `Heliport` table without a default value. This is not possible if the table is not empty.
*/
-- CreateEnum
CREATE TYPE "HeliportType" AS ENUM ('HELIPORT', 'POI');
-- AlterTable
ALTER TABLE "Heliport" ADD COLUMN "type" "HeliportType" NOT NULL;

View File

@@ -0,0 +1,10 @@
/*
Warnings:
- Added the required column `designator` to the `Heliport` table without a default value. This is not possible if the table is not empty.
- Added the required column `designator_sub6` to the `Heliport` table without a default value. This is not possible if the table is not empty.
*/
-- AlterTable
ALTER TABLE "Heliport" ADD COLUMN "designator" TEXT NOT NULL,
ADD COLUMN "designator_sub6" TEXT NOT NULL;

View File

@@ -0,0 +1,10 @@
/*
Warnings:
- You are about to drop the column `designator_sub6` on the `Heliport` table. All the data in the column will be lost.
- Added the required column `designatorSub6` to the `Heliport` table without a default value. This is not possible if the table is not empty.
*/
-- AlterTable
ALTER TABLE "Heliport" DROP COLUMN "designator_sub6",
ADD COLUMN "designatorSub6" TEXT NOT NULL;

View File

@@ -0,0 +1,8 @@
/*
Warnings:
- Added the required column `fir` to the `Heliport` table without a default value. This is not possible if the table is not empty.
*/
-- AlterTable
ALTER TABLE "Heliport" ADD COLUMN "fir" TEXT NOT NULL;

View File

@@ -0,0 +1,14 @@
/*
Warnings:
- The values [HELIPORT] on the enum `HeliportType` will be removed. If these variants are still used in the database, this will fail.
*/
-- AlterEnum
BEGIN;
CREATE TYPE "HeliportType_new" AS ENUM ('HELIPAD', 'POI');
ALTER TABLE "Heliport" ALTER COLUMN "type" TYPE "HeliportType_new" USING ("type"::text::"HeliportType_new");
ALTER TYPE "HeliportType" RENAME TO "HeliportType_old";
ALTER TYPE "HeliportType_new" RENAME TO "HeliportType";
DROP TYPE "HeliportType_old";
COMMIT;

View File

@@ -0,0 +1,5 @@
-- AlterTable
ALTER TABLE "Heliport" ALTER COLUMN "siteElevation" DROP NOT NULL,
ALTER COLUMN "siteElevationUnit" DROP NOT NULL,
ALTER COLUMN "info" DROP NOT NULL,
ALTER COLUMN "hospital" DROP NOT NULL;

View File

@@ -0,0 +1,2 @@
-- AlterEnum
ALTER TYPE "HeliportType" ADD VALUE 'MOUNTAIN';