
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 depths DROP CONSTRAINT fk_depths_unit_id;
ingo@2812: ALTER TABLE sediment_density DROP CONSTRAINT fk_sd_depth_id;
ingo@2816: ALTER TABLE sediment_density DROP CONSTRAINT fk_sd_unit_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_river_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 grain_fraction DROP CONSTRAINT fk_gf_unit_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@2841: ALTER TABLE waterlevel DROP CONSTRAINT fk_w_river_id;
ingo@2841: ALTER TABLE waterlevel DROP CONSTRAINT fk_w_unit_id;
ingo@2841: ALTER TABLE waterlevel_q_range DROP CONSTRAINT fk_wqr_waterlevel_id;
ingo@2841: ALTER TABLE waterlevel_values DROP CONSTRAINT fk_wv_waterlevel_q_range_id;
ingo@2846: ALTER TABLE waterlevel_difference DROP CONSTRAINT fk_wd_river_id;
ingo@2849: ALTER TABLE waterlevel_difference DROP CONSTRAINT fk_wd_unit_id;
ingo@2846: ALTER TABLE waterlevel_difference_column DROP CONSTRAINT fk_wdc_difference_id;
ingo@2846: ALTER TABLE waterlevel_difference_values DROP CONSTRAINT fk_wdv_column_id;
ingo@2805: 
ingo@2805: DROP TABLE bed_height_type;
ingo@2805: DROP TABLE location_system;
ingo@2805: DROP TABLE elevation_model;
ingo@2805: DROP TABLE bed_height_single;
ingo@2805: DROP TABLE bed_height_single_values;
ingo@2805: DROP TABLE bed_height_epoch_values;
ingo@2805: DROP TABLE bed_height_epoch;
ingo@2812: DROP TABLE depths;
ingo@2812: DROP TABLE sediment_density;
ingo@2812: DROP TABLE sediment_density_values;
ingo@2818: DROP TABLE morphologic_width;
ingo@2818: DROP TABLE morphologic_width_values;
ingo@2824: DROP TABLE discharge_zone;
ingo@2824: DROP TABLE flow_velocity_model;
ingo@2824: DROP TABLE flow_velocity_model_values;
ingo@2829: DROP TABLE flow_velocity_measurements;
ingo@2829: DROP TABLE flow_velocity_measure_values;
ingo@2834: DROP TABLE grain_fraction;
ingo@2834: DROP TABLE sediment_yield;
ingo@2834: DROP TABLE sediment_yield_values;
ingo@2841: DROP TABLE waterlevel;
ingo@2841: DROP TABLE waterlevel_q_range;
ingo@2841: DROP TABLE waterlevel_values;
ingo@2846: DROP TABLE waterlevel_difference;
ingo@2846: DROP TABLE waterlevel_difference_column;
ingo@2846: DROP TABLE waterlevel_difference_values;
ingo@2805: 
ingo@2805: DROP SEQUENCE BED_HEIGHT_TYPE_SEQ;
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;
ingo@2841: DROP SEQUENCE WATERLEVEL_ID_SEQ;
ingo@2841: DROP SEQUENCE WATERLEVEL_Q_RANGES_ID_SEQ;
ingo@2841: DROP SEQUENCE WATERLEVEL_VALUES_ID_SEQ;
ingo@2846: DROP SEQUENCE WATERLEVEL_DIFFERENCE_ID_SEQ;
ingo@2846: DROP SEQUENCE WATERLEVEL_DIFF_COLUMN_ID_SEQ;
ingo@2846: DROP SEQUENCE WATERLEVEL_DIFF_VALUES_ID_SEQ;
ingo@2846: 




