Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.x] Add primary keys to database tables #1407

Closed
wants to merge 1 commit into from
Closed

[4.x] Add primary keys to database tables #1407

wants to merge 1 commit into from

Conversation

zoispag
Copy link
Contributor

@zoispag zoispag commented Nov 14, 2023

As suggested in #1380, this PR adds Primary keys to the telescope_entries_tags and the telescope_monitoring tables, to allow HA MySQL deployments.

As suggested in #1380, this PR adds Primary keys to the `telescope_entries_tags` and the `telescope_monitoring` tables, to allow HA MySQL deployments.
@zoispag
Copy link
Contributor Author

zoispag commented Nov 14, 2023

@driesvints how should we deal with existing installations? New migration? Describe it in the release notes?

@driesvints
Copy link
Member

@zoispag it's not needed for existing apps to adjust as no code was changed. Existing installs will just continue to function as-is.

@driesvints driesvints changed the title Add primary keys to database tables [4.x] Add primary keys to database tables Nov 14, 2023
@taylorotwell
Copy link
Member

Since this may break applications, you can just customize the migrations to create the index you want. We document this here:

CleanShot 2023-11-14 at 13 46 26@2x

@driesvints
Copy link
Member

Hi @zoispag. I resent your PR with your commits here: #1425. Thanks for your PR 👍

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