![]() |
Is it safe to ALTER columns from the USERFIELD table ?
Hi,
For example I want to change the columns type to integer with an SQL like this: Code:
ALTER TABLE ro_userfield MODIFY field5 int(10) NOT NULL DEFAULT 10; Regards, Razvan M. |
I would not advise to change the column types.
|
Quote:
|
Parts of standard vBulletin coding may still assume a different column-type.
|
Plus, there'd be no security issue for that you've changed the column type. You'll just face what Marco said.
|
Why do you want to change it ?
|
Quote:
But, after reading the replies above, I am starting to think that it is better to save the points as a string value and when it is necessary to convert the string to an integer. Some additional advantage would have been that it would be quite fast to find all the users with more than lets say 70 points. Maybe there are some MySql functions that allow me to convert a string to integer so that the whole operation will be performed on the MySql side. If that is true, then the only disadvantage remains speed. |
Errrrrmm, converting a string to an integer is easy...There are even two ways to do it.
1./ Probably the best way. PHP Code:
PHP Code:
|
All times are GMT. The time now is 01:12 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|