Updating
--------
updating SnS is the same as every other extension, run:
rake [your_env] radiant:extensions:sns:install
The install task is new to SnS in v0.7. In previous versions (and with
other extensions that dont' have an install task), run:
rake [your_env] radiant:extensions:[ext_name]:migrate
rake [your_env] radiant:extensions:[ext_name]:update
rake [your_env]
radiant:extensions:[ext_name]:any-other-task-needed-by-ext
Problems With Backing Up
------------------------
That said, a month or so ago Anton ran into problems when trying to port
data from one Radiant project to another (not quite the same as updating
an existing project). In his case, during the backup/restore, the
text_asset_dependencies table was copied, and the records were copied --
but not their data. As you can imagine, SnS didn't like that and threw
an error when it couldn't find the expected data.
Normally, I'd chalk this up to a failure in the import/export process
(he copied and pasted data manually using a sqlite editor) but then Nate
Turnage posted with (essentially) the same problem using the
Import-Export extension. Except in his case, that table just wasn't
exported because of how the SnS table and model were named (it ignored
them). With this release, I've changed SnS so that Import-Export (and
Super-Export) extensions will automatically find the models now. (And
I've submitted a patch to those extensions so that this won't happen
with other extensions).
Backup & Restoring
------------------
Rules for copying data from one db to another (SnS or otherwise): Copy
*all* the data. If using the same db in both places, I might suggest
using your db's dump tools. The importing-and-exporting extensions
should now work just fine for you too.
New SnS Data Recreation Tool
--------------------------
I've added a new rake task in SnS to repair/rebuild the
text_asset_dependencies table. It exists for a special migrations case
but it would also help the two situations above. Just run:
rake [your_env] radiant:extensions:sns:rebuild_dependencies
And SnS will rebuild the text_asset_dependencies table (the table must
exist but it handles both missing and empty records).
-Chris
Anton J Aylward wrote:
Chris Parrish said the following on 11/24/2008 12:47 AM:
Time for a new release. This is mostly bugfixes and a minor addition or
two to work with other extension:
Hint, please, as to the ways we might update depending on the way we
installed.
_______________________________________________
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant