vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Product Manager - Version Management? (https://vborg.vbsupport.ru/showthread.php?t=93017)

Link14716 07-27-2005 06:44 PM

Product Manager - Version Management?
 
How does the Product Manager deal with version management? Anyone know before I rip through the file? ;)

Andreas 07-27-2005 06:55 PM

adminfunctions_template.php, is_newer_version()

Basically, it checks the installed Version and executes all Install Codes that carry Version Numbers higher then the one installed in ascending order.

When uninstalling, it tries to execute all uninstall Codes in descending order.

Link14716 07-27-2005 07:14 PM

Looks like I'm going to have to go through the code to find ways around that, then.

Andreas 07-27-2005 07:16 PM

Erm, may I ask why you have to "find ways around that"?
IMHO that does not make sense.

Link14716 07-27-2005 07:20 PM

Well, I don't want it to execute all the install/uninstall codes for all versions - that doesn't make sense. That's like saying that vBulletin should install vB1 and upgrade all the way to 3.5.0.

Andreas 07-27-2005 07:26 PM

That's the way incremental updates do always work :)

If you are upgrading let's say vB 3.0.0 it will upgarade to .1, .2, .3, .. and so on until it reaches 3.0.7

This makes it easy, otherwise you would have to create "full" and "update" installation codes, which is also possible - just delete all except one and place all codes there.

Link14716 07-27-2005 07:38 PM

All I was saying is that I would have to look through and see what variables are being used to make sure only certain code is executed during upgrades and different is executed during installation. Uninstallation would be handled by just having the most recent code there.

Understand? ;)

Andreas 07-27-2005 07:42 PM

I don't get it, sorry.
Anyay, I am sure you will achieve what you want :)

Marco van Herwaarden 07-27-2005 08:14 PM

This will also mean that we can only use numbers in a fixed lenght for the version?

I mean no 'v1.0.1 Beta1', but only 01010101 or something?

Andreas 07-27-2005 08:25 PM

Quote:

Originally Posted by adminfunctions_template.php
PHP Code:

Converts a version number such as 3.0.0 Beta 6 into an integer for comparison purposes
*
Example:
3.0.0 beta 6
* (main version3.0.0sub versionbetasub release6)
returns an integer like this:
* (
main version){5,}(sub version){1}(sub release){2}
Main version is sub divided to \d+?\d{2}\d{2} .
*
Supports versions such as 3.99.99 beta 99 too.
Direct comparison between versions integers is possible


Sub Version accepts Alpha, Beta, Gamma, Relase Candidate, Gold, Stable, Final and Patch Level (as well as some abbreviations for those).
Gold, Stable and Final are the same.


All times are GMT. The time now is 08:26 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.01132 seconds
  • Memory Usage 1,741KB
  • 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_php_printable
  • (1)bbcode_quote_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