Advertisement:

Author Topic: SMF 2.0 Update Part Last  (Read 309740 times)

Offline Aleksi "Lex" Kilpinen

  • Support Specialist
  • SMF Super Hero
  • *
  • Posts: 16,346
  • Gender: Male
  • Don't worry, I'm n00b friendly
    • Aleksi.Kilpinen on Facebook
    • aleksi-kilpinen on LinkedIn
Re: SMF 2.0 Update Part Last
« Reply #480 on: June 09, 2011, 08:49:41 AM »
lol... I still have files from YaBB on one server.
Yeah - That's why :P
A Finnish Support Specialist
 Happily running multiple SMF 2.0 installations.

"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum.
 Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 68,361
    • Arantor on GitHub
Re: SMF 2.0 Update Part Last
« Reply #481 on: June 09, 2011, 09:01:16 AM »
why would you uninstall mods before a large upgrade?   By doing the large upgrade, you remove all mod code, period, because you are replacing the forum files which had been modified.

the only thing you have to worry about is doing the installation of the mod into the new version after upgrade.

Wrong, actually. The packages table is not cleaned up during the upgrade, listing most if not all mods still installed, and making it somewhat more difficult to install since you have to fudge it through an uninstall first.
To assume is to hope that those who came before had the presence of mind and capacity to implement the dreams of those who would come after.

You either die a hero or live long enough to see yourself become the villain. It seems you have chosen which, and now I must do the same.

Offline Illori

  • Project Manager
  • SMF Master
  • *
  • Posts: 48,593
Re: SMF 2.0 Update Part Last
« Reply #482 on: June 09, 2011, 09:05:42 AM »
as far as i know 1.1.1* does not store the packages installed in the db so the above method would work fine for upgrading from 1.1.* to 2.0.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 68,361
    • Arantor on GitHub
Re: SMF 2.0 Update Part Last
« Reply #483 on: June 09, 2011, 09:06:43 AM »
Correct, but all 2.0 RCs do...
To assume is to hope that those who came before had the presence of mind and capacity to implement the dreams of those who would come after.

You either die a hero or live long enough to see yourself become the villain. It seems you have chosen which, and now I must do the same.

Offline Aleksi "Lex" Kilpinen

  • Support Specialist
  • SMF Super Hero
  • *
  • Posts: 16,346
  • Gender: Male
  • Don't worry, I'm n00b friendly
    • Aleksi.Kilpinen on Facebook
    • aleksi-kilpinen on LinkedIn
Re: SMF 2.0 Update Part Last
« Reply #484 on: June 09, 2011, 09:08:25 AM »
That sounds like a bug to me, the large upgrade removes all the edits to files - it should remove the installed packages from the db too...
A Finnish Support Specialist
 Happily running multiple SMF 2.0 installations.

"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum.
 Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

Offline jackregan

  • Jr. Member
  • **
  • Posts: 167
  • Gender: Male
Re: SMF 2.0 Update Part Last
« Reply #485 on: June 09, 2011, 09:11:15 AM »
I am using TinyPortal on RC5. Can anyone tell me if I'll need to uninstall TP to upgrade to SMF 2.0??
Bible Study, Catholic News, Youth Group Stuff (my humble attempt at an SMF site... I'm grateful to the amazing people who have made SMF what it is!!

Offline Illori

  • Project Manager
  • SMF Master
  • *
  • Posts: 48,593
Re: SMF 2.0 Update Part Last
« Reply #486 on: June 09, 2011, 09:11:41 AM »
That sounds like a bug to me, the large upgrade removes all the edits to files - it should remove the installed packages from the db too...

but the database does not know if the files are removed

Offline Aleksi "Lex" Kilpinen

  • Support Specialist
  • SMF Super Hero
  • *
  • Posts: 16,346
  • Gender: Male
  • Don't worry, I'm n00b friendly
    • Aleksi.Kilpinen on Facebook
    • aleksi-kilpinen on LinkedIn
Re: SMF 2.0 Update Part Last
« Reply #487 on: June 09, 2011, 09:16:01 AM »
That sounds like a bug to me, the large upgrade removes all the edits to files - it should remove the installed packages from the db too...

but the database does not know if the files are removed
Unless I'm missing something it doesn't have to, it only needs to know if the mods are still installed or not....
A Finnish Support Specialist
 Happily running multiple SMF 2.0 installations.

"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum.
 Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

Offline Illori

  • Project Manager
  • SMF Master
  • *
  • Posts: 48,593
Re: SMF 2.0 Update Part Last
« Reply #488 on: June 09, 2011, 09:17:19 AM »
right and if you manually removed the files and did not touch the database, the database has no way to know. there is no check other then through the package uninstaller to tell the db the files are removed.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 68,361
    • Arantor on GitHub
Re: SMF 2.0 Update Part Last
« Reply #489 on: June 09, 2011, 09:18:09 AM »
No, but there is code in the upgrader for it...
To assume is to hope that those who came before had the presence of mind and capacity to implement the dreams of those who would come after.

You either die a hero or live long enough to see yourself become the villain. It seems you have chosen which, and now I must do the same.

Offline Antechinus

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 24,138
  • Master of BBC Abuse
Re: SMF 2.0 Update Part Last
« Reply #490 on: June 09, 2011, 09:21:18 AM »
Yup. If anyone gives a rat's, I do upgrades like this:

1/ Get the large upgrade for the version I'm currently using, and load all files except the upgrade php and sql files.

2/ Delete all mod zips.

3/ Uninstall and delete all custom themes.

4/ At this point you effectively have a new, vanilla installation. Then upload all the large upgrade files for the new version (including the actual php and sql upgrade scripts)

5/ Run upgrade.

6/ Install custom stuffs.

7/ Have beer. :)

Works perfectly every time.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 68,361
    • Arantor on GitHub
Re: SMF 2.0 Update Part Last
« Reply #491 on: June 09, 2011, 09:25:35 AM »
Step 2 - uninstall or delete? If you mean just delete, the database record of installation is still present and it will invariably show as installed if you replace the zip file (which means fudging an uninstall to have it handle installation properly)
To assume is to hope that those who came before had the presence of mind and capacity to implement the dreams of those who would come after.

You either die a hero or live long enough to see yourself become the villain. It seems you have chosen which, and now I must do the same.

Offline Antechinus

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 24,138
  • Master of BBC Abuse
Re: SMF 2.0 Update Part Last
« Reply #492 on: June 09, 2011, 09:35:25 AM »
I find that overwriting Packages/installed.list with a blank copy seems to sort it all out. Never gave me any problems doing it that way. But yes, I really should sort the db itself. Doesn't seem to matter if you don't though.

ETA: Mind you, it'd be rare for me to reload the exact same mod zip.

Oh yeah, I'll often uninstall the ones that will uninstall, but just delete the ones that wont.
« Last Edit: June 09, 2011, 09:39:00 AM by Antechinus »

Offline Farjo

  • Jr. Member
  • **
  • Posts: 237
Re: SMF 2.0 Update Part Last
« Reply #493 on: June 09, 2011, 09:42:40 AM »
I'd suggest that someone write an upgrade document but it would delay the release for another year while the team argues about the grammar of one paragraph O:)

Offline Illori

  • Project Manager
  • SMF Master
  • *
  • Posts: 48,593
Re: SMF 2.0 Update Part Last
« Reply #494 on: June 09, 2011, 09:44:26 AM »

Offline Antechinus

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 24,138
  • Master of BBC Abuse
Re: SMF 2.0 Update Part Last
« Reply #495 on: June 09, 2011, 09:49:59 AM »
Should note that my way of doing it is overkill in 99% of cases.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 68,361
    • Arantor on GitHub
Re: SMF 2.0 Update Part Last
« Reply #496 on: June 09, 2011, 09:54:13 AM »
Quote
ETA: Mind you, it'd be rare for me to reload the exact same mod zip.

Doesn't even have to be. It uses the package id to determine whether or not it's the same mod. That's why a bit back I had '2 copies of a mod installed' with only one entry in the log_packages table, because this was on Windows and the first mod was mod.zip, the second was mod (1).zip. Package manager is voodoo, mess with it at your peril ;)
To assume is to hope that those who came before had the presence of mind and capacity to implement the dreams of those who would come after.

You either die a hero or live long enough to see yourself become the villain. It seems you have chosen which, and now I must do the same.

Offline Antechinus

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 24,138
  • Master of BBC Abuse
Re: SMF 2.0 Update Part Last
« Reply #497 on: June 09, 2011, 09:58:32 AM »
Ok, so in future I'll sort the db fields for any mods which wont uninstall. Easy.

ETA: Mind you if I'm going to do that, it'd be faster to just delete all the zips and then run one query to sort all the db entries.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 68,361
    • Arantor on GitHub
Re: SMF 2.0 Update Part Last
« Reply #498 on: June 09, 2011, 09:59:33 AM »
Or, you could just truncate smf_log_packages, which would be a whole lot quicker ;)
To assume is to hope that those who came before had the presence of mind and capacity to implement the dreams of those who would come after.

You either die a hero or live long enough to see yourself become the villain. It seems you have chosen which, and now I must do the same.

Offline jackregan

  • Jr. Member
  • **
  • Posts: 167
  • Gender: Male
Re: SMF 2.0 Update Part Last
« Reply #499 on: June 09, 2011, 10:05:48 AM »
So what about TinyPortal?

When I upgrade my RC5 to 2.0 Gold will it just wipte out TinyPortal?

If so, will all my articles and stuff be there when I just reinstall TP?
Bible Study, Catholic News, Youth Group Stuff (my humble attempt at an SMF site... I'm grateful to the amazing people who have made SMF what it is!!