This PR has a migration; here is the generated SQL for src/sentry/migrations/1115_add_group_derived_data.py
for 1115_add_group_derived_data in sentry
--
-- Create model GroupDerivedData
--
CREATE TABLE "sentry_groupderiveddata" ("id" bigint NOT NULL PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY, "date_updated" timestamp with time zone NOT NULL, "date_added" timestamp with time zone NOT NULL, "cursor_date" timestamp with time zone NOT NULL, "cursor_id" bigint NOT NULL, "data" jsonb NOT NULL, "view_count" integer NOT NULL CHECK ("view_count" >= 0), "progress" varchar(32) NULL, "last_progressed_at" timestamp with time zone NULL, "group_id" bigint NOT NULL UNIQUE);
ALTER TABLE "sentry_groupderiveddata" ADD CONSTRAINT "sentry_groupderivedd_group_id_5f3f73c7_fk_sentry_gr" FOREIGN KEY ("group_id") REFERENCES "sentry_groupedmessage" ("id") DEFERRABLE INITIALLY DEFERRED NOT VALID;
ALTER TABLE "sentry_groupderiveddata" VALIDATE CONSTRAINT "sentry_groupderivedd_group_id_5f3f73c7_fk_sentry_gr";
CREATE INDEX CONCURRENTLY "sentry_grou_progres_f1627f_idx" ON "sentry_groupderiveddata" ("progress", "group_id");
CREATE INDEX CONCURRENTLY "sentry_grou_last_pr_8c8185_idx" ON "sentry_groupderiveddata" ("last_progressed_at", "group_id");
Originally posted by @github-actions[bot] in getsentry/sentry#117238 (comment)
Originally posted by @stiliyanaa in https://github.com/stiliyanaa/https-ondo.finance-/issues/2
This PR has a migration; here is the generated SQL for
src/sentry/migrations/1115_add_group_derived_data.pyfor
1115_add_group_derived_datainsentryOriginally posted by @github-actions[bot] in getsentry/sentry#117238 (comment)
Originally posted by @stiliyanaa in https://github.com/stiliyanaa/https-ondo.finance-/issues/2