PCM.daily banner
21-12-2024 17:08
PCM.daily
Users Online
· Guests Online: 24

· Members Online: 0

· Total Members: 162,191
· Newest Member: Felipeanott
View Thread
PCM.daily » PCM.daily's Management Game » [Man-Game] Discussion
 Print Thread
2023 Transfer Discussion
Fabianski
First of all: Thanks for making this (provisionally) work again Grin
Hope a permanent solution can be found quickly, otherwise this forum will be dead soon...

alexkr00 wrote:
I don't think changing the threads IDs will work since I asume the post in the thread are linked to the thread using that ID so you'd also need to make sure you change the thread id in the table with the posts too. I'm just speculating right now though, I have no idea what the structure of the database is.

The first thing that you should probably look into though is if the sequence that generates the thread ids can be modified to support bigger values.

I assume for the posts there's a similar sequence and the we definitely have a lot more posts than threads so the databas should allow for bigger sequence numbers.

If the solution is indeed as easy as just changing the type of the sequence (and maybe ID field), that'd be great. However, would also need to make sure the software (i.e. PHP code) actually supports this - but afaik there's no short int type in PHP, so that should work. But yeah, as a software dev, never say that "it should work", from experience Pfft

In any case, happy to help out with the DB if needed, had some insights already when helping to create the profile threads...
 
Ad Bot
Posted on 21-12-2024 17:08
Bot Agent

Posts: Countless
Joined: 23.11.09

IP: None  
alexkr00
Your post is number 1441942, Fab, so both the software and the database should be able to work with larger numbers than 65535. So, if there's something that works for the posts IDs, I guess it can be done for threads too.

The max number of the threads sequence was probably set to 65535. My hope is that it that this was set as "eh I guess that's big enough, we ain't gonna reach that number pretty soon anyway" or it's just a default value that can be easily modified, rather than it having to do anything with database/software limitations.

I guess changing that should do the trick, or create a new one starting with the latest thread ID + 1 and with a higher max value would do the trick.

But, then again we have no idea what's behind the scenes. I'm sure the guys who take care of the forum on the more technical side know what to do better Grin
i.imgur.com/S1M3OtV.png
i.imgur.com/wzkfv39.png
i.imgur.com/Uhicj1C.png
i.imgur.com/Ie56lsQ.png
pcmdaily.com/images/mg/Awards2021/avatar21.png
 
OlegTinkov
SportingNonsense wrote:
Better workaround now up and running, claim a thread from Thread Supply, fill in the details, and move it into the right place - whether a Deal or Free Agent:
https://pcmdaily.com/forum/viewthread...st_1441878


Bump
 
http://www.pcmdaily.com/profile.php?lookup=6187
cio93
We got a 48th hour one boys!
 
cunego59
18 minutes is rough ... Grin
 
cio93
Kinda happy now that I'm not getting Hessmann, I guess Frown
 
roturn
cio93 wrote:
Kinda happy now that I'm not getting Hessmann, I guess Frown

Embarassed
 
whitejersey
Thouight this was about the fee, then I checked my preferred cycling news site Frown
 
DubbelDekker
I agree that under normal conditions changing the type of the MySQL column storing the thread ID's from an unsigned SMALLINT to an unsigned MEDIUMINT should fix this problem without causing issues. That changes the maximum value from 65535 to 16777215.
https://dev.mysql...types.html

And PHP doesn't care about that difference at all. An integer is an integer.
Even a strongly typed language like Go wouldn't care.

But like Fab and alex correctly pointed out; "it should work" is not good enough in the world of software.
So before you try anything make sure there are at least two up-to-date full database backups stored in different locations.
i.imgur.com/5iNQj.png
 
SportingNonsense
DubbelDekker wrote:
I agree that under normal conditions changing the type of the MySQL column storing the thread ID's from an unsigned SMALLINT to an unsigned MEDIUMINT should fix this problem without causing issues. That changes the maximum value from 65535 to 16777215.
https://dev.mysql...types.html

And PHP doesn't care about that difference at all. An integer is an integer.
Even a strongly typed language like Go wouldn't care.

But like Fab and alex correctly pointed out; "it should work" is not good enough in the world of software.
So before you try anything make sure there are at least two up-to-date full database backups stored in different locations.


Yeh, it does look like it "should" work.

In the posts database, thread id is actually already defined as mediumint, alongside post id.

It's just in the threads database, where thread id set as smallint.

But indeed - since the transfers workaround does work for now, we haven't just gone in and made the change straight off.
farm8.staticflickr.com/7458/9357923136_f1e68270f3_n.jpg
 
OlegTinkov
Don't worry. Even though you won't sell me your Russian rider(s), I still make beautiful equipment for you Pfft

PT
pcmdaily.com/images/mg/2023/TinkoffFactory/WheelsPT.png
click to enlarge

PCT
pcmdaily.com/images/mg/2023/TinkoffFactory/WheelsPCT.png
click to enlarge


Spoiler
PT
pcmdaily.com/images/mg/2023/TinkoffFactory/MinisPT.png
click to enlarge

PCT
pcmdaily.com/images/mg/2023/TinkoffFactory/MinisPCT.png
click to enlarge

CT
pcmdaily.com/images/mg/2023/TinkoffFactory/MinisCT.png
click to enlarge

 
http://www.pcmdaily.com/profile.php?lookup=6187
Ulrich Ulriksen
Those are beautiful. Thank you.
Man Game: McCormick Pro Cycling
 
jandal7
Wow love it Oleg, great effort from you! Grin I still will use the ones KenL did for us but I appreciate the thought a lot nevertheless Smile
24/02/21 - kandesbunzler said “I don't drink famous people."
15/08/22 - SotD said "Your [jandal's] humour is overrated"
11/06/24 - knockout said "Winning is fine I guess. Truth be told this felt completely unimportant."

[ICL] Santos-Euskadi | [PT] i.imgur.com/c85NSl6.png Xero Racing

i.imgur.com/PdCbs9I.png
i.imgur.com/RPIlJYr.png
5x i.imgur.com/wM6Wok5.png x5
i.imgur.com/olRsxdu.png
2x pcmdaily.com/images/mg/Awards2021/funniest21.png x2
2x i.imgur.com/TUidkLG.png x2
 
ivaneurope
Great effort to provide bespoke customized wheels for every PT and PCT team. I'll use the custom wheels for this season. Thank you
i.imgur.com/rrQH4R2.png
i.imgur.com/KoxIGiG.png
 
tsmoha
Awesome, Oleg. Thanks s lot!
 
DubbelDekker
Looks great Oleg, thanks!
i.imgur.com/5iNQj.png
 
Scorchio
Everything looks fantastic with the graphics presented OT, thanks!
Manager of ISA - Hexacta in the MG
 
Ollfardh
Wow!
Changed my sig, this was getting absurd.
 
Fabianski
Cool, thanks a lot!
Do we have to do anything to get them included, or will they be added to the DB by default if we don't object?
 
sammyt93
Equipment looks great

And I did try and sell you my Russian rider lol
 
Jump to Forum:
Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Latest content
Screenshots
Stannard winning Omloop Het Nieuwsblad
Stannard winning Omloop Het Nieuwsblad
PCM13: General Screenshots
Fantasy Betting
Current bets:
No bets available.
Best gamblers:
bullet fighti... 18,676 PCM$
bullet df_Trek 17,674 PCM$
bullet Marcovdw 15,745 PCM$
bullet jseadog1 13,752 PCM$
bullet baseba... 10,539 PCM$

bullet Main Fantasy Betting page
bullet Rankings: Top 100
ManGame Betting
Current bets:
No bets available.
Best gamblers:
bullet Ollfardh 21,990 PCM$
bullet df_Trek 15,820 PCM$
bullet Marcovdw 15,200 PCM$
bullet jseadog1 13,700 PCM$
bullet baseball... 7,432 PCM$

bullet Main MG Betting page
bullet Get weekly MG PCM$
bullet Rankings: Top 100
Render time: 0.46 seconds