revert93to92.sql 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. --------------------------------------------------------------------------
  2. --
  3. -- IDS 9.30 to IDS 9.2x reversion script for the Spatial DataBlade
  4. --
  5. -- You must execute this script (using DB-Access or SQL Editor)
  6. -- before you can revert your server from 9.3 to 9.2x if the
  7. -- following sequence of events describes your reversion scenario:
  8. -- 1. Bring up (or convert to) 9.3x server.
  9. -- 2. Register the Spatial DataBlade.
  10. -- 3. Revert to 9.2x server.
  11. --
  12. -- You do NOT have to run this script if the following sequence
  13. -- of events describes your reversion scenario:
  14. -- 1. Bring up 9.2x server.
  15. -- 2. Register the Spatial DataBlade.
  16. -- 3. Convert to 9.3x server.
  17. -- 4. Revert to 9.2x server.
  18. --------------------------------------------------------------------------
  19. begin work;
  20. drop function streamwrite(stream,ST_Point);
  21. drop function streamread(stream,ST_Point);
  22. drop function streamwrite(stream,ST_MultiPoint);
  23. drop function streamread(stream,ST_MultiPoint);
  24. drop function streamwrite(stream,ST_LineString);
  25. drop function streamread(stream,ST_LineString);
  26. drop function streamwrite(stream,ST_MultiLineString);
  27. drop function streamread(stream,ST_MultiLineString);
  28. drop function streamwrite(stream,ST_Polygon);
  29. drop function streamread(stream,ST_Polygon);
  30. drop function streamwrite(stream,ST_MultiPolygon);
  31. drop function streamread(stream,ST_MultiPolygon);
  32. drop function streamwrite(stream,ST_Curve);
  33. drop function streamread(stream,ST_Curve);
  34. drop function streamwrite(stream,ST_MultiCurve);
  35. drop function streamread(stream,ST_MultiCurve);
  36. drop function streamwrite(stream,ST_Surface);
  37. drop function streamread(stream,ST_Surface);
  38. drop function streamwrite(stream,ST_MultiSurface);
  39. drop function streamread(stream,ST_MultiSurface);
  40. drop function streamwrite(stream,ST_Geometry);
  41. drop function streamread(stream,ST_Geometry);
  42. drop function streamwrite(stream,ST_GeomCollection);
  43. drop function streamread(stream,ST_GeomCollection);
  44. drop function SE_SuppRelease();
  45. delete from sysbldobjects where
  46. bld_id like 'spatial.%' and obj_signature = 'stream.sql';
  47. delete from sysbldobjects where
  48. bld_id like 'spatial.%' and obj_signature = 'SE_SuppRelease ()';
  49. commit work;