Skip to content

Commit

Permalink
forgot the migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
0x7d8 committed Dec 12, 2024
1 parent 1d9463a commit 9f36c92
Show file tree
Hide file tree
Showing 3 changed files with 505 additions and 0 deletions.
7 changes: 7 additions & 0 deletions migrations/0001_gifted_rafael_vega.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
ALTER TABLE "telemetry_data" ALTER COLUMN "panel_id" SET DATA TYPE uuid;--> statement-breakpoint
ALTER TABLE "telemetry_data" ALTER COLUMN "data" SET DATA TYPE jsonb;--> statement-breakpoint
ALTER TABLE "telemetry_panels" ALTER COLUMN "id" SET DATA TYPE uuid;--> statement-breakpoint
ALTER TABLE "telemetry_data" ADD COLUMN "telemetry_version" smallint NOT NULL;--> statement-breakpoint
ALTER TABLE "telemetry_panels" ADD COLUMN "last_update" timestamp DEFAULT now() NOT NULL;--> statement-breakpoint
ALTER TABLE "telemetry_panels" DROP COLUMN IF EXISTS "version";--> statement-breakpoint
TRUNCATE "telemetry_data", "telemetry_panels" CASCADE;
Loading

0 comments on commit 9f36c92

Please sign in to comment.