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

moved some table field comments into schema.sql #102

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

peterdd
Copy link
Contributor

@peterdd peterdd commented Sep 19, 2021

  • This PR moves some comments from schema.sql into the database itself, so that information is present in the running database.

  • The current is not using foreign key relations, so I added at least the id of the virtual referencing primary key as comment. This way it can be read out by database schema analyzing programs and educate people how these tables fit together.

  • Changed from DEFAULT '0' to DEFAULT 0 when it is an integer field (cosmetic as mysql handles both)

This is just a little step and does not change any field name, although I suggest renaming all fields referencing bugdb.id to 'bugdb_id' (bugdb_votest.bug, bug_subscribe.bug_id, bugdb_comments.bug) for unity.

* This PR moves some comments from schema.sql into the database itself, so that information is present in the running database.

* The current is not using foreign key relations, so I added at least the id of the virtual referencing primary key as comment. This way it can be read out by database schema analyzing programs and educate people how these tables fit together.

* Changed from DEFAULT '0' to DEFAULT 0 when it is an integer field (cosmetic as mysql handles both)

This is just a little step and does not change any field name, although I suggest renaming all fields referencing bugdb.id to 'bugdb_id' (bugdb_votest.bug, bug_subscribe.bug_id, bugdb_comments.bug) for unity.
@peterdd
Copy link
Contributor Author

peterdd commented Oct 21, 2021

Any thoughts? I would like to see this little cleanup merged before applying changes for #53 voting over ipv6.

https://bugs.php.net/bug.php?id=76961

See also

#53 (comment)

@derickr
Copy link
Member

derickr commented Jul 31, 2024

bugs.php.net is no longer really used, and hence, we're sunsetting it. Due to that, I don't think it makes sense to merge this patch, which also has conflicts.

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.

2 participants