vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Post counts: Higher (https://vborg.vbsupport.ru/showthread.php?t=40954)

Glock 07-12-2002 04:00 AM

Post counts: Higher
 
Is there a way to allow it to go into the millions, but it will still work normally for everyone?

E 07-12-2002 04:24 AM

umm.. u could change the character max in ur MySQL table

Glock 07-12-2002 04:25 AM

I don't know how.

Neo 07-12-2002 05:50 AM

Run this query

PHP Code:

ALTER TABLE `userCHANGE `posts` `postsSMALLINT(50UNSIGNED DEFAULT '0' NOT NULL 


that should do it.

Glock 07-12-2002 05:51 AM

Ok, thanks I'll try it out. In case I want to go back what is the code for returning it to normal?

Glock 07-30-2002 11:30 PM

Anyone know how to return it to normal?

Logician 07-31-2002 11:09 AM

Although
[sql]
ALTER TABLE `user` CHANGE `posts` `posts` SMALLINT(5) UNSIGNED DEFAULT '0' NOT NULL
[/sql]
is the SQL command which will revert it back to original, you cant return back if you populated your fields with high numbers. How can you restrict the field back to 5 chars again, if you have high numbers already put in there?

Glock 07-31-2002 09:46 PM

I'm not sure what you mean Logican...

Issvar 08-01-2002 12:53 AM

SMALLINT is supposed to allow only upto 65535, so if you want to have higher numbers you need to use a different type of column, like INT, which allows upto 4 billion, so use the following mysql query to change the type:
Code:

ALTER TABLE `user` CHANGE `posts` `posts` INT UNSIGNED DEFAULT '0' NOT NULL
The code to reset it is correct.

Neo 08-01-2002 03:32 AM

*looks at old post* WTF


All times are GMT. The time now is 09:58 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01068 seconds
  • Memory Usage 1,724KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete