Closed (fixed)
Project:
Openlayers
Version:
6.x-2.x-dev
Component:
OpenLayers API
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Jan 2010 at 22:44 UTC
Updated:
12 Feb 2010 at 00:21 UTC
drupal_get_schema_unprocessed() should not be used in schema update hooks. In the event that the schema changes in the future, the update hook from the past will load the newest schema and operate with that when it is expecting to use an older "snapshot."
The solution is to make a copy of the schema definition in the update hook so there is a snapshot of what the schema looked like at a given point in time.
This is still fixable now, but will quickly become critical if the schema changes.
Comments
Comment #1
zzolo commentedClosing this and putting into #690864: Openlayers Upgrade Path for 0.x to 2.x (and ensure that schema version is correct)