Hi Anne,
Deactivating the plugin won't delete any data. From the look of things, it should be as easy
as deactivating the plugin, upgrade Omeka to 2.0, replace the plugin code with the new version, and update it. Since it will be upgrading rather than installing, there shouldn't be any clash of table names.
That's assuming that there are no changes to the element set between the versions. If changes need to be made, the upgrade hook is the place to handle any of that.
Incidentally, a bugfix release of Omeka is due out this week. It fixes some problems in the upgrade of exhibits, among other things.
Patrick
On 02/15/2013 05:05 PM, Anne Wootton wrote:
Hi Omeka dev group,
Our archive is currently using an element set created by means of a simple plug-in that adds a new table in MySQL. We have updated that plug-in for Omeka 2.0. My concern is the following: will something break or will we lose data if we deactivate the 1.5x plug-in, upgrade our site to Omeka 2.0, then install and activate our upgraded 2.0 element set plug-in? Will we be able to run Omeka 2.0 with the deactivated 1.5x plug-in, or do we need to uninstall the 1.5x plug-in — and if we do, how best to ensure that we don't lose data?
When we install the upgraded 2.0 element set plug-in, it will attempt to create another table in MySQL, which will already exist because it will have been created by the 1.5x plug-in. Is there a good way around this? A simple check we could add to the code to verify whether or not the table already exists, so that it doesn't throw an error if the table is already there?
If helpful: here's the 1.5x version of the plug-in: https://github.com/annewootton/PBCore-Element-Set.git
And here's the 2.0 version: https://github.com/Daniel-KM/PBCoreElementSet.git
Many thanks,
Anne
--
You received this message because you are subscribed to the Google Groups "Omeka Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to omeka-dev+unsubscribe@googlegroups.com.
To post to this group, send email to omek...@googlegroups.com.
Visit this group at http://groups.google.com/group/omeka-dev?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "Omeka Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to omeka-dev+unsubscribe@googlegroups.com.
Hi Patrick,
Great, thanks for clarifying. To be explicitly clear: to upgrade the plugin, I do not re-install the plugin v2.0, but rather drag the 2.0-compatible files into the (formerly 1.5x) folder once I have deactivated the 1.5x plugin and upgraded Omeka to 2.0 � right?�
Am I correct that this manual "upgrading" doesn't make use of the upgrade hook at all (which should be fine, since the element set is not changing between versions)?
Duly noted on the forthcoming bug fix � appreciate the heads up.
Thanks again,
Anne
On Mon, Feb 18, 2013 at 10:30 AM, Patrick Murray-John <patric...@gmail.com> wrote:
Hi Anne,
Deactivating the plugin won't delete any data. From the look of things, it should be as easy
�as deactivating the plugin, upgrade Omeka to 2.0, replace the plugin code with the new version, and update it. Since it will be upgrading rather than installing, there shouldn't be any clash of table names.
That's assuming that there are no changes to the element set between the versions. If changes need to be made, the upgrade hook is the place to handle any of that.
Incidentally, a bugfix release of Omeka is due out this week. It fixes some problems in the upgrade of exhibits, among other things.
Patrick
On 02/15/2013 05:05 PM, Anne Wootton wrote:
Hi Omeka dev group,
Our archive is currently using an element set created by means of a simple plug-in that adds a new table in MySQL. We have updated that plug-in for Omeka 2.0. My concern is the following: will something break or will we lose data if we deactivate the 1.5x plug-in, upgrade our site to Omeka 2.0, then install and activate our upgraded 2.0 element set plug-in? Will we be able to run Omeka 2.0 with the deactivated 1.5x plug-in, or do we need to uninstall the 1.5x plug-in � and if we do, how best to ensure that we don't lose data?
When we install the upgraded 2.0 element set plug-in, it will attempt to create another table in MySQL, which will already exist because it will have been created by the 1.5x plug-in. Is there a good way around this? A simple check we could add to the code to verify whether or not the table already exists, so that it doesn't throw an error if the table is already there?
If helpful: here's the 1.5x version of the plug-in: https://github.com/annewootton/PBCore-Element-Set.git
And here's the 2.0 version: https://github.com/Daniel-KM/PBCoreElementSet.git
Many thanks,
Anne
--
You received this message because you are subscribed to the Google Groups "Omeka Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to omeka-dev+...@googlegroups.com.
To post to this group, send email to omek...@googlegroups.com.
Visit this group at http://groups.google.com/group/omeka-dev?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "Omeka Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to omeka-dev+...@googlegroups.com.
To post to this group, send email to omek...@googlegroups.com.
Visit this group at http://groups.google.com/group/omeka-dev?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "Omeka Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to omeka-dev+...@googlegroups.com.
To post to this group, send email to omek...@googlegroups.com.
Visit this group at http://groups.google.com/group/omeka-dev?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
�
�
Visit this group at http://groups.google.com/group/omeka-dev.
For more options, visit https://groups.google.com/d/optout.