lurqrun 0.0.6 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,20 @@
1
+ CREATE TABLE "symbols" (
2
+ "id" serial PRIMARY KEY NOT NULL,
3
+ "entity_id" integer NOT NULL,
4
+ "path" text NOT NULL,
5
+ "kind" text NOT NULL,
6
+ "arity" integer,
7
+ "origin" text DEFAULT 'local' NOT NULL,
8
+ "deprecated" boolean DEFAULT false NOT NULL,
9
+ "tier" text NOT NULL,
10
+ "source_file" text,
11
+ "source_line" integer
12
+ );
13
+ --> statement-breakpoint
14
+ ALTER TABLE "entities" ADD COLUMN "artifact_hash" text;--> statement-breakpoint
15
+ ALTER TABLE "entities" ADD COLUMN "in_degree" integer;--> statement-breakpoint
16
+ ALTER TABLE "observations" ADD COLUMN "class" text DEFAULT 'executed' NOT NULL;--> statement-breakpoint
17
+ ALTER TABLE "observations" ADD COLUMN "tier" text;--> statement-breakpoint
18
+ ALTER TABLE "symbols" ADD CONSTRAINT "symbols_entity_id_entities_id_fk" FOREIGN KEY ("entity_id") REFERENCES "public"."entities"("id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
19
+ CREATE UNIQUE INDEX "symbols_entity_path_idx" ON "symbols" USING btree ("entity_id","path");--> statement-breakpoint
20
+ CREATE INDEX "entities_artifact_idx" ON "entities" USING btree ("artifact_hash");
@@ -0,0 +1 @@
1
+ ALTER TABLE "claims" ALTER COLUMN "environment_id" DROP NOT NULL;
@@ -0,0 +1,11 @@
1
+ CREATE TABLE "surface_queue" (
2
+ "id" serial PRIMARY KEY NOT NULL,
3
+ "package_name" text NOT NULL,
4
+ "version" text,
5
+ "spec_key" text NOT NULL,
6
+ "attempts" integer DEFAULT 0 NOT NULL,
7
+ "requested_at" timestamp with time zone DEFAULT now() NOT NULL,
8
+ CONSTRAINT "surface_queue_spec_key_unique" UNIQUE("spec_key")
9
+ );
10
+ --> statement-breakpoint
11
+ CREATE INDEX "surface_queue_requested_idx" ON "surface_queue" USING btree ("requested_at");
@@ -0,0 +1,3 @@
1
+ DROP INDEX "symbols_entity_path_idx";--> statement-breakpoint
2
+ ALTER TABLE "symbols" ADD COLUMN "signature" text;--> statement-breakpoint
3
+ CREATE UNIQUE INDEX "symbols_entity_path_tier_idx" ON "symbols" USING btree ("entity_id","path","tier");
@@ -0,0 +1,17 @@
1
+ CREATE TABLE "repos" (
2
+ "id" serial PRIMARY KEY NOT NULL,
3
+ "owner_id" text NOT NULL,
4
+ "installation_id" bigint NOT NULL,
5
+ "full_name" text NOT NULL,
6
+ "default_branch" text,
7
+ "is_private" boolean DEFAULT false NOT NULL,
8
+ "policy" jsonb NOT NULL,
9
+ "manifests" jsonb,
10
+ "drift" jsonb,
11
+ "last_scan_at" timestamp with time zone,
12
+ "last_scan_error" text,
13
+ "created_at" timestamp with time zone DEFAULT now() NOT NULL
14
+ );
15
+ --> statement-breakpoint
16
+ CREATE UNIQUE INDEX "repos_owner_full_name_idx" ON "repos" USING btree ("owner_id","full_name");--> statement-breakpoint
17
+ CREATE INDEX "repos_installation_idx" ON "repos" USING btree ("installation_id");
@@ -0,0 +1,24 @@
1
+ CREATE TABLE "upgrade_runs" (
2
+ "id" serial PRIMARY KEY NOT NULL,
3
+ "owner_id" text NOT NULL,
4
+ "repo_id" integer,
5
+ "repo_full_name" text NOT NULL,
6
+ "package_name" text NOT NULL,
7
+ "from_version" text NOT NULL,
8
+ "to_version" text NOT NULL,
9
+ "severity" text NOT NULL,
10
+ "status" text NOT NULL,
11
+ "symbols_affected" jsonb DEFAULT '[]'::jsonb NOT NULL,
12
+ "call_sites" integer DEFAULT 0 NOT NULL,
13
+ "call_site_files" jsonb,
14
+ "files_changed" integer,
15
+ "tests_passed" boolean,
16
+ "pr_url" text,
17
+ "run_url" text DEFAULT '' NOT NULL,
18
+ "created_at" timestamp with time zone DEFAULT now() NOT NULL
19
+ );
20
+ --> statement-breakpoint
21
+ ALTER TABLE "repos" ADD COLUMN "install_command" text;--> statement-breakpoint
22
+ CREATE INDEX "upgrade_runs_owner_created_idx" ON "upgrade_runs" USING btree ("owner_id","created_at");--> statement-breakpoint
23
+ CREATE INDEX "upgrade_runs_repo_idx" ON "upgrade_runs" USING btree ("repo_id");--> statement-breakpoint
24
+ CREATE UNIQUE INDEX "upgrade_runs_dedup_idx" ON "upgrade_runs" USING btree ("owner_id","repo_full_name","package_name","to_version","run_url");
@@ -0,0 +1 @@
1
+ ALTER TABLE "sync_runs" ADD COLUMN "origin" text;
@@ -0,0 +1,15 @@
1
+ CREATE TABLE "repo_alerts" (
2
+ "id" serial PRIMARY KEY NOT NULL,
3
+ "owner_id" text NOT NULL,
4
+ "repo_id" integer NOT NULL,
5
+ "repo_full_name" text NOT NULL,
6
+ "package_name" text NOT NULL,
7
+ "range" text NOT NULL,
8
+ "from_version" text,
9
+ "to_version" text NOT NULL,
10
+ "in_range" boolean NOT NULL,
11
+ "created_at" timestamp with time zone DEFAULT now() NOT NULL
12
+ );
13
+ --> statement-breakpoint
14
+ CREATE INDEX "repo_alerts_owner_created_idx" ON "repo_alerts" USING btree ("owner_id","created_at");--> statement-breakpoint
15
+ CREATE UNIQUE INDEX "repo_alerts_dedup_idx" ON "repo_alerts" USING btree ("repo_id","package_name","to_version");
@@ -0,0 +1,5 @@
1
+ CREATE TABLE "selection_policies" (
2
+ "owner_id" text PRIMARY KEY NOT NULL,
3
+ "policy" jsonb NOT NULL,
4
+ "updated_at" timestamp with time zone DEFAULT now() NOT NULL
5
+ );