Skip to content

Commit 5927e5d

Browse files
committed
Add overlays and some UI clean up
1 parent 6a403c5 commit 5927e5d

File tree

16 files changed

+2268
-387
lines changed

16 files changed

+2268
-387
lines changed

drizzle/0005_wise_starfox.sql

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
CREATE TABLE IF NOT EXISTS "airspace_overlay_components" (
2+
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
3+
"group_id" uuid NOT NULL,
4+
"name" text,
5+
"color" text,
6+
"geojson" jsonb,
7+
"settings" jsonb
8+
);
9+
--> statement-breakpoint
10+
CREATE TABLE IF NOT EXISTS "airspace_overlay_groups" (
11+
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
12+
"name" text,
13+
"is_published" boolean DEFAULT false NOT NULL,
14+
"created_at" timestamp DEFAULT now()
15+
);
16+
--> statement-breakpoint
17+
DO $$ BEGIN
18+
ALTER TABLE "airspace_overlay_components" ADD CONSTRAINT "airspace_overlay_components_group_id_airspace_overlay_groups_id_fk" FOREIGN KEY ("group_id") REFERENCES "public"."airspace_overlay_groups"("id") ON DELETE cascade ON UPDATE no action;
19+
EXCEPTION
20+
WHEN duplicate_object THEN null;
21+
END $$;

0 commit comments

Comments
 (0)