You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CONSTRAINT"fk_digger_jobs_batch"FOREIGN KEY ("batch_id") REFERENCES"public"."digger_batches" ("id") ONUPDATE NO ACTION ON DELETE NO ACTION,
53
+
CONSTRAINT"fk_digger_jobs_digger_job_summary"FOREIGN KEY ("digger_job_summary_id") REFERENCES"public"."digger_job_summaries" ("id") ONUPDATE NO ACTION ON DELETE NO ACTION
54
+
);
55
+
56
+
-- Create index "idx_digger_jobs_deleted_at" to table: "digger_jobs"
57
+
CREATEINDEXIF NOT EXISTS "idx_digger_jobs_deleted_at"ON"public"."digger_jobs" ("deleted_at");
58
+
59
+
-- Create index "idx_digger_job_id" to table: "digger_jobs"
60
+
CREATEINDEXIF NOT EXISTS "idx_digger_job_id"ON"public"."digger_jobs" ("batch_id");
61
+
62
+
-- Create "digger_locks" table
63
+
CREATETABLEIF NOT EXISTS "public"."digger_locks" (
CONSTRAINT"fk_digger_locks_organization"FOREIGN KEY ("organization_id") REFERENCES"public"."organizations" ("id") ONUPDATE NO ACTION ON DELETE NO ACTION
73
+
);
74
+
75
+
-- Create index "idx_digger_locked_resource" to table: "digger_locks"
76
+
CREATEINDEXIF NOT EXISTS "idx_digger_locked_resource"ON"public"."digger_locks" ("resource");
77
+
78
+
-- Create index "idx_digger_locks_deleted_at" to table: "digger_locks"
79
+
CREATEINDEXIF NOT EXISTS "idx_digger_locks_deleted_at"ON"public"."digger_locks" ("deleted_at");
80
+
81
+
-- Create "digger_run_stages" table
82
+
CREATETABLEIF NOT EXISTS "public"."digger_run_stages" (
CONSTRAINT"fk_digger_runs_repo"FOREIGN KEY ("repo_id") REFERENCES"public"."repos" ("id") ONUPDATE NO ACTION ON DELETE NO ACTION,
120
+
CONSTRAINT"fk_digger_runs_plan_stage"FOREIGN KEY ("plan_stage_id") REFERENCES"public"."digger_run_stages" ("id") ONUPDATE NO ACTION ON DELETE NO ACTION,
121
+
CONSTRAINT"fk_digger_runs_apply_stage"FOREIGN KEY ("apply_stage_id") REFERENCES"public"."digger_run_stages" ("id") ONUPDATE NO ACTION ON DELETE NO ACTION
122
+
);
123
+
124
+
-- Create index "idx_digger_runs_deleted_at" to table: "digger_runs"
125
+
CREATEINDEXIF NOT EXISTS "idx_digger_runs_deleted_at"ON"public"."digger_runs" ("deleted_at");
126
+
127
+
-- Create "github_app_installation_links" table
128
+
CREATETABLEIF NOT EXISTS "public"."github_app_installation_links" (
CONSTRAINT"fk_github_app_installation_links_organization"FOREIGN KEY ("organization_id") REFERENCES"public"."organizations" ("id") ONUPDATE NO ACTION ON DELETE NO ACTION
138
+
);
139
+
140
+
-- Create index "idx_github_app_installation_links_deleted_at" to table: "github_app_installation_links"
141
+
CREATEINDEXIF NOT EXISTS "idx_github_app_installation_links_deleted_at"ON"public"."github_app_installation_links" ("deleted_at");
142
+
143
+
-- Create index "idx_github_installation_org" to table: "github_app_installation_links"
144
+
CREATEINDEXIF NOT EXISTS "idx_github_installation_org"ON"public"."github_app_installation_links" ("github_installation_id", "organization_id");
145
+
146
+
-- Create "github_app_installations" table
147
+
CREATETABLEIF NOT EXISTS "public"."github_app_installations" (
0 commit comments