Skip to content

Remove old duplicate index#17245

Merged
Gargron merged 1 commit intomastodon:mainfrom
ClearlyClaire:fixes/duplicate-mentions_status_id_index
Jan 23, 2022
Merged

Remove old duplicate index#17245
Gargron merged 1 commit intomastodon:mainfrom
ClearlyClaire:fixes/duplicate-mentions_status_id_index

Conversation

@ClearlyClaire
Copy link
Copy Markdown
Contributor

Some Mastodon versions (v1.1 and v1.2) had a duplicate index in db/schema.rb without any migration script creating it. #2224 (included in v1.3) removed the duplicate index from the file but did not provide a migration script to remove it.

This means that any instance that was installed from v1.1 or v1.2's source code has a duplicate index and a corresponding warning in PgHero. Instances set up using an earlier or later Mastodon version do not have this issue.

This PR removes the duplicate index if it is present.

@ClearlyClaire ClearlyClaire force-pushed the fixes/duplicate-mentions_status_id_index branch from 4ae7548 to fa87bd1 Compare January 5, 2022 16:00
@ClearlyClaire ClearlyClaire requested a review from Gargron January 5, 2022 16:07
Some Mastodon versions (v1.1 and v1.2) had a duplicate index in `db/schema.rb`
without any migration script creating it. mastodon#2224 (included in v1.3) removed the
duplicate index from the file but did not provide a migration script to remove
it.

This means that any instance that was installed from v1.1 or v1.2's source code
has a duplicate index and a corresponding warning in PgHero. Instances set up
using an earlier or later Mastodon version do not have this issue.

This PR removes the duplicate index if it is present.
@ClearlyClaire ClearlyClaire force-pushed the fixes/duplicate-mentions_status_id_index branch from fa87bd1 to e79f5c2 Compare January 22, 2022 22:01
@Gargron Gargron merged commit 96f0b33 into mastodon:main Jan 23, 2022
jesseplusplus pushed a commit to jesseplusplus/decodon that referenced this pull request Feb 10, 2022
Some Mastodon versions (v1.1 and v1.2) had a duplicate index in `db/schema.rb`
without any migration script creating it. mastodon#2224 (included in v1.3) removed the
duplicate index from the file but did not provide a migration script to remove
it.

This means that any instance that was installed from v1.1 or v1.2's source code
has a duplicate index and a corresponding warning in PgHero. Instances set up
using an earlier or later Mastodon version do not have this issue.

This PR removes the duplicate index if it is present.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants