Migration does not pass

9.0.0 to 9.1.2
Syncing…

Creating tables ...

Installing custom SQL ...

Installing indexes ...

Installed 0 object(s) from 0 fixture(s)

Migrating...

Running migrations for sentry:

! Migration sentry:0425_auto__add_index_pullrequest_organization_id_merge_commit_sha should not have been applied before sentry:0424_initial but was.

- Migrating forwards to 0472_auto__add_field_sentryapp_author.

> sentry:0424_initial

FATAL ERROR - The following SQL query failed: CREATE TABLE "sentry_activity" ("id" bigserial NOT NULL PRIMARY KEY, "project_id" bigint NOT NULL, "group_id" bigint NULL, "type" integer CHECK ("type" >= 0) NOT NULL, "ident" varchar(64) NULL, "user_id" integer NULL, "datetime" timestamp with time zone NOT NULL, "data" text NULL)

The error was: ProgrammingError('\xd0\x9e\xd0\xa8\xd0\x98\xd0\x91\xd0\x9a\xd0\x90: \xd0\xbe\xd1\x82\xd0\xbd\xd0\xbe\xd1\x88\xd0\xb5\xd0\xbd\xd0\xb8\xd0\xb5 "sentry_activity" \xd1\x83\xd0\xb6\xd0\xb5 \xd1\x81\xd1\x83\xd1\x89\xd0\xb5\xd1\x81\xd1\x82\xd0\xb2\xd1\x83\xd0\xb5\xd1\x82\n',)

SQL: CREATE TABLE "sentry_activity" ("id" bigserial NOT NULL PRIMARY KEY, "project_id" bigint NOT NULL, "group_id" bigint NULL, "type" integer CHECK ("type" >= 0) NOT NULL, "ident" varchar(64) NULL, "user_id" integer NULL, "datetime" timestamp with time zone NOT NULL, "data" text NULL)

Error in migration: sentry:0424_initial

This looks similar to https://github.com/getsentry/onpremise/issues/591