diff --git a/migrations/0001_gifted_rafael_vega.sql b/migrations/0001_gifted_rafael_vega.sql index 8755355..4424d1a 100644 --- a/migrations/0001_gifted_rafael_vega.sql +++ b/migrations/0001_gifted_rafael_vega.sql @@ -1,7 +1,7 @@ +TRUNCATE "telemetry_data", "telemetry_panels" CASCADE;--> statement-breakpoint 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; \ No newline at end of file +ALTER TABLE "telemetry_panels" DROP COLUMN IF EXISTS "version"; \ No newline at end of file