ingo@2805: SET AUTOCOMMIT ON;
ingo@2805: 
ingo@2805: ALTER TABLE elevation_model DROP CONSTRAINT fk_unit;
ingo@2809: ALTER TABLE bed_height_single DROP CONSTRAINT fk_bed_single_river_id;
ingo@2805: ALTER TABLE bed_height_single DROP CONSTRAINT fk_type;
ingo@2807: ALTER TABLE bed_height_single DROP CONSTRAINT fk_location_system;
ingo@2805: ALTER TABLE bed_height_single DROP CONSTRAINT fk_cur_elevation_model;
ingo@2805: ALTER TABLE bed_height_single DROP CONSTRAINT fk_old_elevation_model;
ingo@2805: ALTER TABLE bed_height_single DROP CONSTRAINT fk_range;
ingo@2805: ALTER TABLE bed_height_single_values DROP CONSTRAINT fk_bed_single_values_parent;
ingo@2805: ALTER TABLE bed_height_epoch_values DROP CONSTRAINT fk_bed_epoch_values_parent;
ingo@2809: ALTER TABLE bed_height_epoch DROP CONSTRAINT fk_epoch_cur_elevation_model;
ingo@2809: ALTER TABLE bed_height_epoch DROP CONSTRAINT fk_epoch_old_elevation_model;
ingo@2809: ALTER TABLE bed_height_epoch DROP CONSTRAINT fk_epoch_range;
ingo@2812: ALTER TABLE sediment_density DROP CONSTRAINT fk_sd_depth_id;
ingo@2812: ALTER TABLE sediment_density_values DROP CONSTRAINT fk_sdv_sediment_density_id;
ingo@2818: ALTER TABLE morphologic_width DROP CONSTRAINT fk_mw_river_id;
ingo@2818: ALTER TABLE morphologic_width DROP CONSTRAINT fk_mw_unit_id;
ingo@2818: ALTER TABLE morphologic_width_values DROP CONSTRAINT fk_mwv_morphologic_width_id;
ingo@2824: ALTER TABLE flow_velocity_model_values DROP CONSTRAINT fk_fvv_flow_velocity_model_id;
ingo@2824: ALTER TABLE flow_velocity_model DROP CONSTRAINT fk_fvm_discharge_zone_id;
ingo@2824: ALTER TABLE discharge_zone DROP CONSTRAINT fk_dz_river_id;
ingo@2829: ALTER TABLE flow_velocity_measurements DROP CONSTRAINT fk_fvm_rivers_id;
ingo@2829: ALTER TABLE flow_velocity_measure_values DROP CONSTRAINT fk_fvmv_measurements_id;
ingo@2834: ALTER TABLE sediment_yield DROP CONSTRAINT fk_sy_grain_fraction_id;
ingo@2834: ALTER TABLE sediment_yield DROP CONSTRAINT fk_sy_unit_id;
ingo@2834: ALTER TABLE sediment_yield DROP CONSTRAINT fk_sy_time_interval_id;
ingo@2836: ALTER TABLE sediment_yield DROP CONSTRAINT fk_sy_river_id;
ingo@2834: ALTER TABLE sediment_yield_values DROP CONSTRAINT fk_syv_sediment_yield_id;
ingo@3321: ALTER TABLE sq_relation DROP CONSTRAINT fk_sqr_tinterval_id;
ingo@3329: ALTER TABLE sq_relation DROP CONSTRAINT fk_sqr_river_id;
ingo@3321: ALTER TABLE sq_relation_value DROP CONSTRAINT fk_sqr_id;
tom@5406: ALTER TABLE sq_relation_value DROP CONSTRAINT fk_mstation_id;
aheinecke@5206: ALTER TABLE measurement_station DROP CONSTRAINT fk_ms_river_id;
aheinecke@5206: ALTER TABLE measurement_station DROP CONSTRAINT fk_ms_range_id;
aheinecke@5206: ALTER TABLE measurement_station DROP CONSTRAINT fk_ms_reference_gauge_id;
aheinecke@5206: ALTER TABLE measurement_station DROP CONSTRAINT fk_ms_observation_timerange_id;
ingo@2805: 
tom@6652: DROP TABLE bed_height_type PURGE;
tom@6652: DROP TABLE location_system PURGE;
tom@6652: DROP TABLE elevation_model PURGE;
tom@6652: DROP TABLE bed_height_single PURGE;
tom@6652: DROP TABLE bed_height_single_values PURGE;
tom@6652: DROP TABLE bed_height_epoch_values PURGE;
tom@6652: DROP TABLE bed_height_epoch PURGE;
tom@6652: DROP TABLE depths PURGE;
tom@6652: DROP TABLE sediment_density PURGE;
tom@6652: DROP TABLE sediment_density_values PURGE;
tom@6652: DROP TABLE morphologic_width PURGE;
tom@6652: DROP TABLE morphologic_width_values PURGE;
tom@6652: DROP TABLE discharge_zone PURGE;
tom@6652: DROP TABLE flow_velocity_model PURGE;
tom@6652: DROP TABLE flow_velocity_model_values PURGE;
tom@6652: DROP TABLE flow_velocity_measurements PURGE;
tom@6652: DROP TABLE flow_velocity_measure_values PURGE;
tom@6652: DROP TABLE grain_fraction PURGE;
tom@6652: DROP TABLE sediment_yield PURGE;
tom@6652: DROP TABLE sediment_yield_values PURGE;
tom@6652: DROP TABLE measurement_station PURGE;
tom@6652: DROP TABLE sq_relation_value PURGE;
tom@6652: DROP TABLE sq_relation PURGE;
ingo@2805: 
ingo@2805: DROP SEQUENCE LOCATION_SYSTEM_SEQ;
ingo@2805: DROP SEQUENCE ELEVATION_MODEL_SEQ;
ingo@2805: DROP SEQUENCE BED_HEIGHT_SINGLE_ID_SEQ;
ingo@2805: DROP SEQUENCE BED_SINGLE_VALUES_ID_SEQ;
ingo@2805: DROP SEQUENCE BED_EPOCH_VALUES_ID_SEQ;
ingo@2805: DROP SEQUENCE BED_HEIGHT_EPOCH_ID_SEQ;
ingo@2812: DROP SEQUENCE DEPTHS_ID_SEQ;
ingo@2812: DROP SEQUENCE SEDIMENT_DENSITY_ID_SEQ;
ingo@2812: DROP SEQUENCE SEDIMENT_DENSITY_VALUES_ID_SEQ;
ingo@2818: DROP SEQUENCE MORPHOLOGIC_WIDTH_ID_SEQ;
ingo@2818: DROP SEQUENCE MORPH_WIDTH_VALUES_ID_SEQ;
ingo@2824: DROP SEQUENCE DISCHARGE_ZONE_ID_SEQ;
ingo@2824: DROP SEQUENCE FLOW_VELOCITY_MODEL_ID_SEQ;
ingo@2824: DROP SEQUENCE FLOW_VELOCITY_M_VALUES_ID_SEQ;
ingo@2829: DROP SEQUENCE FV_MEASURE_ID_SEQ;
ingo@2829: DROP SEQUENCE FV_MEASURE_VALUES_ID_SEQ;
ingo@2834: DROP SEQUENCE GRAIN_FRACTION_ID_SEQ;
ingo@2834: DROP SEQUENCE SEDIMENT_YIELD_ID_SEQ;
ingo@2834: DROP SEQUENCE SEDIMENT_YIELD_VALUES_ID_SEQ;
tom@6632: DROP SEQUENCE MEASUREMENT_STATION_ID_SEQ;
ingo@3321: DROP SEQUENCE SQ_RELATION_ID_SEQ;
ingo@3321: DROP SEQUENCE SQ_RELATION_VALUES_ID_SEQ;