Skip to content

Conversation

@petk
Copy link
Member

@petk petk commented Nov 24, 2018

This patch fixes a bug when user with IPv6 is voting on a bug. It syncs the functionality with the rest of the ip column types in the database.

Before applying this patch, the database schema needs to be updated and current IPs should ideally be converted from integers to numeric values returned by the INET6_ATON() MySQL function.

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

This patch fixes a bug when user with IPv6 is voting on a bug. It syncs
the functionality with the rest of the ip column types in the database.

Before applying this patch, the database schema need to be updated and
current IPs should ideally be converted from integers to numeric values
returned by the INET6_ATON() MySQL function.
@petk
Copy link
Member Author

petk commented Dec 11, 2018

This needs database schema to change first I think. Sending patch to the bugs.php.net instead and closing this one for now.

@petk petk closed this Dec 11, 2018
@petk petk deleted the patch-76961 branch December 11, 2018 00:56
@peterdd
Copy link
Contributor

peterdd commented Sep 19, 2021

This could be the required live database change following suggested change in schema.sql

alter table bugdb_votes modify ip varbinary(16) not null comment 'for ipv4 and ipv6';

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