Advertisement:
NameCheap

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

Offline Kindred

  • Project Manager
  • SMF Master
  • *
  • Posts: 37,608
  • Gender: Male
  • Red Sox WIN!
    • wagner999 on Facebook
    • www.linkedin.com/in/wdwagner/ on LinkedIn
    • @Kindred_999 on Twitter
Re: SMF 2.0 Update Part Last
« Reply #480 on: June 09, 2011, 08:48:04 AM »
lol... I still have files from YaBB on one server.
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support forums.  Thank you.

Offline Aleksi "Lex" Kilpinen

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,430
  • Gender: Male
  • The Artist Formerly Known as LexArma
Re: SMF 2.0 Update Part Last
« Reply #481 on: June 09, 2011, 08:49:41 AM »
lol... I still have files from YaBB on one server.
Yeah - That's why :P
Finnish Support Local Moderator & Support Specialist
My Mods: Facebook and Twitter Sharer



Offline Arantor

  • SMF Friend
  • SMF Legend
  • *
  • Posts: 58,417
Re: SMF 2.0 Update Part Last
« Reply #482 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.

Offline Illori

  • Doc Coordinator
  • SMF Master
  • *
  • Posts: 33,900
Re: SMF 2.0 Update Part Last
« Reply #483 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

  • SMF Friend
  • SMF Legend
  • *
  • Posts: 58,417
Re: SMF 2.0 Update Part Last
« Reply #484 on: June 09, 2011, 09:06:43 AM »
Correct, but all 2.0 RCs do...

Offline Aleksi "Lex" Kilpinen

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,430
  • Gender: Male
  • The Artist Formerly Known as LexArma
Re: SMF 2.0 Update Part Last
« Reply #485 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...
Finnish Support Local Moderator & Support Specialist
My Mods: Facebook and Twitter Sharer



Offline jackregan

  • Jr. Member
  • **
  • Posts: 167
  • Gender: Male
Re: SMF 2.0 Update Part Last
« Reply #486 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

  • Doc Coordinator
  • SMF Master
  • *
  • Posts: 33,900
Re: SMF 2.0 Update Part Last
« Reply #487 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

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,430
  • Gender: Male
  • The Artist Formerly Known as LexArma
Re: SMF 2.0 Update Part Last
« Reply #488 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....
Finnish Support Local Moderator & Support Specialist
My Mods: Facebook and Twitter Sharer



Offline Illori

  • Doc Coordinator
  • SMF Master
  • *
  • Posts: 33,900
Re: SMF 2.0 Update Part Last
« Reply #489 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

  • SMF Friend
  • SMF Legend
  • *
  • Posts: 58,417
Re: SMF 2.0 Update Part Last
« Reply #490 on: June 09, 2011, 09:18:09 AM »
No, but there is code in the upgrader for it...

Offline Antechinus

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 22,349
  • Master of BBC Abuse
Re: SMF 2.0 Update Part Last
« Reply #491 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.
President for life - Righteous League of GitHub Haterz

 "Seems brilliantly designed to match the intuitions of demented ferrets"

Offline Arantor

  • SMF Friend
  • SMF Legend
  • *
  • Posts: 58,417
Re: SMF 2.0 Update Part Last
« Reply #492 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)

Offline Antechinus

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 22,349
  • Master of BBC Abuse
Re: SMF 2.0 Update Part Last
« Reply #493 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 »
President for life - Righteous League of GitHub Haterz

 "Seems brilliantly designed to match the intuitions of demented ferrets"

Offline Farjo

  • Jr. Member
  • **
  • Posts: 237
Re: SMF 2.0 Update Part Last
« Reply #494 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

  • Doc Coordinator
  • SMF Master
  • *
  • Posts: 33,900
Re: SMF 2.0 Update Part Last
« Reply #495 on: June 09, 2011, 09:44:26 AM »

Offline Antechinus

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 22,349
  • Master of BBC Abuse
Re: SMF 2.0 Update Part Last
« Reply #496 on: June 09, 2011, 09:49:59 AM »
Should note that my way of doing it is overkill in 99% of cases.
President for life - Righteous League of GitHub Haterz

 "Seems brilliantly designed to match the intuitions of demented ferrets"

Offline Arantor

  • SMF Friend
  • SMF Legend
  • *
  • Posts: 58,417
Re: SMF 2.0 Update Part Last
« Reply #497 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 ;)

Offline Antechinus

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 22,349
  • Master of BBC Abuse
Re: SMF 2.0 Update Part Last
« Reply #498 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.
President for life - Righteous League of GitHub Haterz

 "Seems brilliantly designed to match the intuitions of demented ferrets"

Offline Arantor

  • SMF Friend
  • SMF Legend
  • *
  • Posts: 58,417
Re: SMF 2.0 Update Part Last
« Reply #499 on: June 09, 2011, 09:59:33 AM »
Or, you could just truncate smf_log_packages, which would be a whole lot quicker ;)