tom@977: SET search_path TO stammdaten; tom@977: tom@980: -- cleanup tom@977: DELETE FROM auth; tom@977: DELETE FROM ort; tom@977: DELETE FROM ort_typ; tom@977: DELETE FROM pflicht_messgroesse; tom@977: DELETE FROM datenbasis; tom@977: DELETE FROM mess_einheit; tom@977: DELETE FROM messgroesse; tom@977: DELETE FROM mess_methode; tom@977: DELETE FROM datensatz_erzeuger; tom@977: DELETE FROM mess_stelle; tom@977: DELETE FROM probenehmer; tom@977: DELETE FROM messprogramm_kategorie; tom@977: DELETE FROM netz_betreiber; tom@977: DELETE FROM probenart; tom@977: DELETE FROM proben_zusatz; tom@977: DELETE FROM koordinaten_art; tom@977: DELETE FROM staat; tom@977: DELETE FROM umwelt; tom@977: DELETE FROM verwaltungseinheit; tom@977: tom@977: -- seed tom@977: -- minimal master data to make interface tests runnable tom@977: INSERT INTO ort_typ (id) VALUES (1); tom@977: INSERT INTO datenbasis (id) VALUES (9); tom@977: INSERT INTO mess_einheit (id) VALUES (207); tom@977: INSERT INTO messgroesse (id, messgroesse) VALUES (56, 'Mangan'); raimund@1040: INSERT INTO mess_methode (id) VALUES ('A3'); tom@977: INSERT INTO netz_betreiber (id) VALUES ('06'); tom@977: INSERT INTO mess_stelle (id, netzbetreiber_id) VALUES ('06010', '06'); raimund@1040: INSERT INTO pflicht_messgroesse (id, mmt_id, datenbasis_id) VALUES (33, 'A3', 9); tom@977: INSERT INTO probenart (id, probenart, probenart_eudf_id) VALUES (1, 'E', 'A'); tom@977: INSERT INTO proben_zusatz (id, beschreibung, zusatzwert) tom@977: VALUES ('A74', 'Volumenstrom', 'VOLSTR'); tom@977: INSERT INTO koordinaten_art (id) VALUES (5); tom@977: INSERT INTO staat (id, staat, hkl_id, staat_iso) tom@977: VALUES (0, 'Deutschland', 0, 'DE'); tom@977: INSERT INTO umwelt (id, umwelt_bereich) VALUES ('L6', 'Spurenmessung Luft'); tom@977: INSERT INTO verwaltungseinheit ( tom@977: id, bundesland, bezeichnung, tom@977: is_bundesland, is_gemeinde, is_landkreis, is_regbezirk) tom@977: VALUES ('11000000', '11000000', 'Berlin', 1, 1, 1, 0); tom@977: tom@977: -- authorization data needed for tests tom@977: INSERT INTO auth (ldap_group, netzbetreiber_id, mst_id, funktion_id) tom@977: VALUES ('mst_06_status', '06', '06010', 1); tom@977: INSERT INTO auth (ldap_group, netzbetreiber_id, funktion_id) tom@977: VALUES ('land_06_stamm', '06', 4);