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

Require Primary Keys in all SQL tables #32168

Closed
wants to merge 1 commit into from
Closed

Require Primary Keys in all SQL tables #32168

wants to merge 1 commit into from

Conversation

solracsf
Copy link
Member

Force the existence of PK on all MySQL/MariaDB tables.
https://vettabase.com/blog/why-tables-need-a-primary-key-in-mariadb-and-mysql/

Force the existence of PK on all MySQL/MariaDB tables
@solracsf solracsf added the 3. to review Waiting for reviews label Apr 26, 2022
@szaimen szaimen requested review from nickvergessen, a team, ArtificialOwl, skjnldsv and vanpertsch and removed request for a team April 26, 2022 18:32
@szaimen szaimen added this to the Nextcloud 25 milestone Apr 26, 2022
Copy link
Contributor

@szaimen szaimen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makes sense

@nickvergessen
Copy link
Member

Tried that: #31513
Not quite there yet so for now we just log it: #31887

Can't find the todo with the remaining tables and apps at the moment.

But the change in here is not needed then and would also not artificially break the tests where we test DB migrations.
It will not be needed as Nextcloud won't install by itself once we require it on the schema level, so I vote for closing

@solracsf
Copy link
Member Author

Oh I see, sad to read that. PK is indeed a must have when scaling is a goal (with Nextcloud, it often is).
But I got your point ATM so, closing for now.

@solracsf solracsf closed this Apr 26, 2022
@solracsf solracsf deleted the require-pk branch April 26, 2022 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants