Request to enhance database structure

Phoca Download - download manager
sirkai
Phoca Member
Phoca Member
Posts: 35
Joined: 15 Nov 2015, 11:25

Request to enhance database structure

Post by sirkai »

Hi, I just enabled IP logging and found a bug when it tries to store the ip.
Errormessage: Data too long for column ‘ip’ at row 1

The table that stores the logs has a varchar(20) for the IP which is too short. I changed it to 50 and it now works.
That should be fixed with next update.

Regards, Kai
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47947
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Request to enhance database structure

Post by Jan »

Hi, which version of Phoca Download do you use? It has varchar(50) as default:

https://github.com/PhocaCz/PhocaDownloa ... 8.sql#L220

Jan
If you find Phoca extensions useful, please support the project
sirkai
Phoca Member
Phoca Member
Posts: 35
Joined: 15 Nov 2015, 11:25

Re: Request to enhance database structure

Post by sirkai »

Using 4.0.6 here already. New install probably works. Maybe the update from 20 to 50 failed at some point in the past ?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47947
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Request to enhance database structure

Post by Jan »

Hi, yes, this works for new installations. When updating, this needs to be changed manually direclty in database.

Jan
If you find Phoca extensions useful, please support the project
Post Reply