cleanup.sql 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. ----------------------------------------------------------------------------
  2. -- cleanup.sql
  3. --
  4. -- This script will remove all tables and spatial_references table entries
  5. -- created by the sql examples.
  6. ----------------------------------------------------------------------------
  7. DELETE FROM spatial_references WHERE srid >= 1000 AND srid <= 1005;
  8. DROP TABLE airports;
  9. DROP TABLE aus_locns;
  10. DROP TABLE boundary_test;
  11. DROP TABLE buildingfootprints;
  12. DROP TABLE cities;
  13. DROP TABLE closed_linestring;
  14. DROP TABLE closed_mlinestring;
  15. DROP TABLE convexhull_test;
  16. DROP TABLE coorddim_test;
  17. DROP TABLE dimension_test;
  18. DROP TABLE empty_test;
  19. DROP TABLE endpoint_test;
  20. DROP TABLE envelope_test;
  21. DROP TABLE equal_test;
  22. DROP TABLE geometry_test;
  23. DROP TABLE geometrytype_test;
  24. DROP TABLE hazardous_sites;
  25. DROP TABLE honeycomb;
  26. DROP TABLE islands;
  27. DROP TABLE issimple_test;
  28. DROP TABLE jagged_lines;
  29. DROP TABLE linestring_test;
  30. DROP TABLE locatealong_test;
  31. DROP TABLE locatebetween_test;
  32. DROP TABLE lots;
  33. DROP TABLE m_test;
  34. DROP TABLE measure_test;
  35. DROP TABLE mlinestring_test;
  36. DROP TABLE multipoint_test;
  37. DROP TABLE multipolygon_test;
  38. DROP TABLE numpoints_test;
  39. DROP TABLE point_test;
  40. DROP TABLE pointn_test;
  41. DROP TABLE polygon_test;
  42. DROP TABLE relate_test;
  43. DROP TABLE ring_linestring;
  44. DROP TABLE sensitive_areas;
  45. DROP TABLE sewerlines;
  46. DROP TABLE srid_test;
  47. DROP TABLE startpoint_test;
  48. DROP TABLE threed_test;
  49. DROP TABLE waterways;
  50. DROP TABLE well_locations;
  51. DROP TABLE x_test;
  52. DROP TABLE y_test;
  53. DROP TABLE z_test;