Here's how to upgrade your existing installation:
0. Back up your database and files, just to be safe. Beta 4 is a
significant update which will modify your database programmatically.
1. Extract thinkup.zip over your existing installation's files.
2. Visit your ThinkUp installation and walk through the database updates.
What's changed:
* New! Web-based database upgrader: When you install the new version,
you'll experience the biggest new ThinkUp feature, our web-based
database upgrader. Instead of running SQL by hand to update your
ThinkUp datastore, the app will walk you through the process step by
step, show you what changes it made, and even give you an option to
back up your data first. Screenshots here:
http://www.flickr.com/photos/ginatrapani/sets/72157625383770504/
This new feature is big and complicated and while we tried our best to
test every possible scenario, we're depending on you to let us know
how it goes and report any problems you may have or make any UX
suggestions. (Thanks in advance for that.)
* New! Configurable Twitter API error tolerance: The Twitter API
serves many fail whales. You can now configure the crawler to tolerate
up to a certain number of whales--5 by default, but you can increase
or reduce it now in the plugin settings.
https://skitch.com/ginatrapani/ryj2n/configure-your-account-thinkup
* Fixed! Crawler log updates as-it-runs: The "Update now" page updates
in real-time, instead of spinning and spinning until an entire crawler
run is complete.
* Fixed! Lots of little things: no more exec() PHP warning, the
WordPress plugin instructions and DB calls are fixed, long URLs now
wrap correctly, no more bug with deleted accounts because of caching,
restored missing cache directory causing permissions error, added
automatic tests for installation and upgrade process, ported several
tests to the FixtureBuilder library.
Beta 4 represents 19 commits by 5 authors and contains a total of
2,750 passing tests, 243 more than beta 3. The complete version diff
is here:
http://github.com/ginatrapani/thinkup/compare/v0.3...v0.4
Thanks especially to Mark, Randi, Denis, and Sam for their
contributions to this beta.
Let us know if you have any problems with the update,
Gina
Is there a step between the first and second screenshots to trigger the email?
I get the same page saying it's being updated, but no email.
Sorry if I'm missing something obvious :D
If you don't receive the email, click on the "What?" help link on the
page for how to get the token you need to continue the upgrade.
--
You received this message because you are subscribed to the Google
Groups "ThinkUp App" group.
http://groups.google.com/group/thinkupapp?hl=en
Find out more about ThinkUp:
http://thinkupapp.com
Whoa, did anyone else panic when GitHub went down today? Reuploaded
beta 4 distribution file:
https://github.com/ginatrapani/ThinkUp/downloads
-hal
On 11/14/2010 07:24 PM, Gina Trapani wrote:
Same error here. I was about to drop the table, but apparently that
didn't work for the poster.
/r
I was moving from 3 to 4. The migration script was running both
2010-11-08_v0.4.sql.migration
2010-11-06_v0.4.sql.migration
I edited these two files and changed the table name to
CREATE TABLE tu_options06 (
CREATE TABLE tu_options08 (
respectively. THen I clicked on "Updated database" and it worked. It
also created those tow tables, which I dropped.
Everything appears to be working now in .4 on that instance.
hth
/r
$ ls *0.4*
0001-01-01_v0.4.sql.migration 2010-11-05_v0.4.sql.migration 2010-11-06_v0.4.sql.migration
The fix is just to remove the extra migrations sql files from the build.
In the mean time, if you are running the upgrade, just manually delete 0001-01-01_v0.4.sql.migration and 2010-11-05_v0.4.sql.migration from the thinkup/install/sql/mysql_migrations directory.
-Mark
> DB update fails for me because I don't use the default tu_ prefix on
> my tables:
>
> There was a problem processing this database update. Error details:
> SQLSTATE[42S02]: Base table or view not found: 1146 Table
> 'thinkup.tu_posts' doesn't exist
>
ah, right...this would be the same issue with running the migrations by hand. should be easy enough to fix.
> Also, visiting the link we receive by email when there's no update to
> do anymore shows the following message:
> "You must be a ThinkUp admin to do this".
>
this is because the update is now done, so your token is no longer valid, and you are not logged in...maybe we should add a message if there is an invalid token passed, ie: "This update has already been completed" or some such.
-m
-hal
https://github.com/ginatrapani/ThinkUp/downloads
-hal
So glad to hear that!
The reason we show the upgrade in progress message when an update has occurred is because there is a chance the data model has changed in a way that may make thinkup un-runnable, so we have users to run the database upgrade/migration right after a new version of the app has been installed.
-m
It is a one time token that only exists when u are running an upgrade, once the upgrade is complete, the token is removed, so there is a small window where someone could attempt to exploit the token auth.
also, the only thing a user can do with this token is to run the database upgrade, they don't gain access to any other functionality, so worse case is they run the upgrade for you ;)
-m