[PATCH 2 of 3] Cascade clause added

Wald Commits scm-commit at wald.intevation.org
Tue Mar 13 09:57:17 CET 2018


# HG changeset patch
# User mschaefer
# Date 1520930628 -3600
# Node ID c7b200fe343b9b68bf7941b5ea53d577161d742c
# Parent  71b17f73176218ca72dff6c36d73bccb1e9edf33
Cascade clause added

diff -r 71b17f731762 -r c7b200fe343b backend/doc/schema/postgresql-drop-spatial.sql
--- a/backend/doc/schema/postgresql-drop-spatial.sql	Tue Mar 13 09:42:41 2018 +0100
+++ b/backend/doc/schema/postgresql-drop-spatial.sql	Tue Mar 13 09:43:48 2018 +0100
@@ -1,47 +1,43 @@
 BEGIN;
 
-DROP TABLE river_axes;
+DROP TABLE axis_kinds CASCADE;
+DROP TABLE river_axes CASCADE;
 DROP SEQUENCE RIVER_AXES_ID_SEQ;
+DROP TABLE river_axes_km CASCADE;
+DROP SEQUENCE RIVER_AXES_KM_ID_SEQ;
+DROP TABLE cross_section_track_kinds CASCADE;
+DROP TABLE cross_section_tracks CASCADE;
+DROP SEQUENCE CROSS_SECTION_TRACKS_ID_SEQ;
+DROP TABLE building_kinds CASCADE;
+DROP TABLE buildings CASCADE;
+DROP SEQUENCE BUILDINGS_ID_SEQ;
+DROP TABLE fixpoints CASCADE;
+DROP SEQUENCE FIXPOINTS_ID_SEQ;
+DROP TABLE floodplain_kinds CASCADE;
+DROP TABLE floodplain CASCADE;
+DROP SEQUENCE FLOODPLAIN_ID_SEQ;
+DROP TABLE dem CASCADE;
+DROP SEQUENCE DEM_ID_SEQ;
+DROP TABLE hws_kinds CASCADE;
+DROP TABLE fed_states CASCADE;
+DROP TABLE hws_lines CASCADE;
+DROP SEQUENCE HWS_LINES_ID_SEQ;
+DROP TABLE hws_points CASCADE;
+DROP SEQUENCE HWS_POINTS_ID_SEQ;
+DROP TABLE floodmap_kinds CASCADE;
+DROP TABLE floodmaps CASCADE;
+DROP SEQUENCE FLOODMAPS_ID_SEQ;
+DROP TABLE sectie_kinds CASCADE;
+DROP TABLE sobek_kinds CASCADE;
+DROP TABLE boundary_kinds CASCADE;
+DROP TABLE hydr_boundaries CASCADE;
+DROP SEQUENCE HYDR_BOUNDARIES_ID_SEQ;
+DROP TABLE hydr_boundaries_poly CASCADE;
+DROP SEQUENCE HYDR_BOUNDARIES_POLY_ID_SEQ;
+DROP TABLE jetty_kinds CASCADE;
+DROP TABLE jetties CASCADE;
+DROP SEQUENCE JETTIES_ID_SEQ;
+DROP TABLE flood_marks CASCADE;
+DROP SEQUENCE FLOOD_MARKS_ID_SEQ;
 
-DROP TABLE river_axes_km;
-DROP SEQUENCE RIVER_AXES_KM_ID_SEQ;
-
-DROP TABLE cross_section_tracks;
-DROP SEQUENCE CROSS_SECTION_TRACKS_ID_SEQ;
-
-DROP TABLE buildings;
-DROP SEQUENCE BUILDINGS_ID_SEQ;
-
-DROP TABLE fixpoints;
-DROP SEQUENCE FIXPOINTS_ID_SEQ;
-
-DROP TABLE floodplain;
-DROP SEQUENCE FLOODPLAIN_ID_SEQ;
-
-DROP TABLE dem;
-DROP SEQUENCE DEM_ID_SEQ;
-
-DROP TABLE hws_points;
-DROP SEQUENCE HWS_POINTS_ID_SEQ;
-
-DROP TABLE hws_lines;
-DROP SEQUENCE HWS_LINES_ID_SEQ;
-
-DROP TABLE floodmaps;
-DROP SEQUENCE FLOODMAPS_ID_SEQ;
-
-DROP TABLE hydr_boundaries;
-DROP SEQUENCE HYDR_BOUNDARIES_ID_SEQ;
-
-DROP TABLE hydr_boundaries_poly;
-DROP SEQUENCE HYDR_BOUNDARIES_POLY_ID_SEQ;
-
-DROP TABLE fed_states;
-DROP TABLE hws_kinds;
-DROP TABLE sobek_kinds;
-DROP TABLE sectie_kinds;
-DROP TABLE boundary_kinds;
-DROP TABLE axis_kinds;
-DROP TABLE building_kinds;
-
-COMMIT;
+COMMIT;
\ No newline at end of file


More information about the Dive4Elements-commits mailing list