Skip to content

This PR has a migration; here is the generated SQL for src/sentry/migrations/1115_add_group_derived_data.py #6566

@stiliyanaa

Description

@stiliyanaa

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions