[Mapbender-commits] r1983 - branches/2.5/resources/db/update

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Fri Jan 18 05:49:56 EST 2008


Author: astrid_emde
Date: 2008-01-18 05:49:55 -0500 (Fri, 18 Jan 2008)
New Revision: 1983

Modified:
   branches/2.5/resources/db/update/update_postgresql_db.sql
Log:
dbchanges for mapbender 2.5

Modified: branches/2.5/resources/db/update/update_postgresql_db.sql
===================================================================
--- branches/2.5/resources/db/update/update_postgresql_db.sql	2008-01-18 10:48:24 UTC (rev 1982)
+++ branches/2.5/resources/db/update/update_postgresql_db.sql	2008-01-18 10:49:55 UTC (rev 1983)
@@ -9,8 +9,11 @@
 -- createlang plpgsql mapbender
 
 
+INSERT INTO gui_mb_group (fkey_gui_id, fkey_mb_group_id, mb_group_type) VALUES ('admin_de_services', 20, '');
+INSERT INTO gui_mb_group (fkey_gui_id, fkey_mb_group_id, mb_group_type) VALUES ('admin_en_services', 20, '');
+
 --
--- table mb_monitort: new columns for mb_monitor
+-- table mb_monitor: new columns for mb_monitor
 --
 ALTER TABLE mb_monitor ADD COLUMN image int4;
 ALTER TABLE mb_monitor ADD COLUMN map_url varchar(2048);
@@ -55,11 +58,14 @@
 -- grant root access to default wfs
 UPDATE wfs SET wfs_owner = 1;
 
-
+--
+-- new table gui_wfs_conf
+--
 CREATE TABLE gui_wfs_conf (
     fkey_gui_id character varying(50) DEFAULT ''::character varying NOT NULL,
     fkey_wfs_conf_id integer DEFAULT 0 NOT NULL
 );
+
 ALTER TABLE ONLY gui_wfs_conf
     ADD CONSTRAINT pk_fkey_wfs_conf_id PRIMARY KEY (fkey_gui_id, fkey_wfs_conf_id);
    
@@ -91,9 +97,15 @@
 ALTER TABLE ONLY wfs_featuretype_keyword
     ADD CONSTRAINT fkey_featuretype_id_fkey_keyword_id FOREIGN KEY (fkey_featuretype_id) REFERENCES wfs_featuretype(featuretype_id) ON UPDATE CASCADE ON DELETE CASCADE;
 
+--
+-- new table layer_load_count
+--
+CREATE TABLE layer_load_count (
+ fkey_layer_id int4, 
+ load_count int8
+);
 
 
-
 --
 -- table wfs_conf_element: change in WFS configuration: access to geometries may now be restricted
 --
@@ -126,6 +138,8 @@
 
 CREATE INDEX msgid_idx ON translations(msgid);
 
+
+
 -- 
 -- new function gettext for easy translations
 -- 
@@ -159,24 +173,24 @@
 INSERT INTO translations (locale, msgid, msgstr) VALUES ('de', 'Display complete map', 'gesamte Karte anzeigen');
 INSERT INTO translations (locale, msgid, msgstr) VALUES ('de', 'Zoom in', 'ZoomIn');
 INSERT INTO translations (locale, msgid, msgstr) VALUES ('de', 'Zoom out', 'ZoomOut');
-INSERT INTO translations (locale, msgid, msgstr) VALUES ('de', 'Back', 'Zurück');
+INSERT INTO translations (locale, msgid, msgstr) VALUES ('de', 'Back', 'Zurück');
 INSERT INTO translations (locale, msgid, msgstr) VALUES ('de', 'Forward', 'Nach vorne');
 INSERT INTO translations (locale, msgid, msgstr) VALUES ('de', 'Coordinates', 'Koordinaten anzeigen');
-INSERT INTO translations (locale, msgid, msgstr) VALUES ('de', 'Zoom by rectangle', 'Ausschnitt wählen');
+INSERT INTO translations (locale, msgid, msgstr) VALUES ('de', 'Zoom by rectangle', 'Ausschnitt wählen');
 INSERT INTO translations (locale, msgid, msgstr) VALUES ('de', 'Redraw', 'Neu laden oder Tastatur: Leertaste');
 INSERT INTO translations (locale, msgid, msgstr) VALUES ('de', 'Query', 'Datenabfrage');
 INSERT INTO translations (locale, msgid, msgstr) VALUES ('de', 'Logout', 'Ausgang');
 INSERT INTO translations (locale, msgid, msgstr) VALUES ('de', 'WMS preferences', 'WMS Einstellungen');
-INSERT INTO translations (locale, msgid, msgstr) VALUES ('de', 'Adding WMS from filtered list', 'WMS von gefilteter Liste hinzufügen');
+INSERT INTO translations (locale, msgid, msgstr) VALUES ('de', 'Adding WMS from filtered list', 'WMS von gefilteter Liste hinzufügen');
 INSERT INTO translations (locale, msgid, msgstr) VALUES ('de', 'Set map center', 'Kartenmittelpunkt setzen');
 INSERT INTO translations (locale, msgid, msgstr) VALUES ('de', 'Help', 'Hilfe');
 INSERT INTO translations (locale, msgid, msgstr) VALUES ('de', 'Show WMS infos', 'Anzeige von WMS Informationen');
 INSERT INTO translations (locale, msgid, msgstr) VALUES ('de', 'Save workspace as web map context document', 'Ansicht als Web Map Context Dokument speichern');
-INSERT INTO translations (locale, msgid, msgstr) VALUES ('de', 'Resize Mapsize', 'Bildschirmgröße anpassen');
+INSERT INTO translations (locale, msgid, msgstr) VALUES ('de', 'Resize Mapsize', 'Bildschirmgröße anpassen');
 INSERT INTO translations (locale, msgid, msgstr) VALUES ('de', 'Rubber', 'Radiergummi');
-INSERT INTO translations (locale, msgid, msgstr) VALUES ('de', 'Get Area', 'Fläche berechnen');
+INSERT INTO translations (locale, msgid, msgstr) VALUES ('de', 'Get Area', 'Fläche berechnen');
 INSERT INTO translations (locale, msgid, msgstr) VALUES ('de', 'Close Polygon', 'Polygon schliessen');
-INSERT INTO translations (locale, msgid, msgstr) VALUES ('de', 'Move back to your GUI list', 'Zurück zur GUI Liste');
+INSERT INTO translations (locale, msgid, msgstr) VALUES ('de', 'Move back to your GUI list', 'Zurück zur GUI Liste');
 INSERT INTO translations (locale, msgid, msgstr) VALUES ('de', 'Legend', 'Legende');
 INSERT INTO translations (locale, msgid, msgstr) VALUES ('de', 'Print', 'Druck');
 INSERT INTO translations (locale, msgid, msgstr) VALUES ('de', 'Imprint', 'Impressum');
@@ -184,24 +198,45 @@
 INSERT INTO translations (locale, msgid, msgstr) VALUES ('de', 'Search', 'Suche');
 INSERT INTO translations (locale, msgid, msgstr) VALUES ('de', 'Meetingpoint', 'Treffpunkt');
 INSERT INTO translations (locale, msgid, msgstr) VALUES ('de', 'Metadatasearch', 'Metadatensuche');
-INSERT INTO translations (locale, msgid, msgstr) VALUES ('de', 'Adding WMS', 'WMS hinzufügen');
-INSERT INTO translations (locale, msgid, msgstr) VALUES ('de', 'Adding WMS from List', 'WMS von Liste hinzufügen');
+INSERT INTO translations (locale, msgid, msgstr) VALUES ('de', 'Adding WMS', 'WMS hinzufügen');
+INSERT INTO translations (locale, msgid, msgstr) VALUES ('de', 'Adding WMS from List', 'WMS von Liste hinzufügen');
 INSERT INTO translations (locale, msgid, msgstr) VALUES ('de', 'Info', 'Info');
-INSERT INTO translations (locale, msgid, msgstr) VALUES ('de', 'Change Projection', 'Projektion ändern');
+INSERT INTO translations (locale, msgid, msgstr) VALUES ('de', 'Change Projection', 'Projektion ändern');
 INSERT INTO translations (locale, msgid, msgstr) VALUES ('de', 'Copyright', 'Copyright');
 INSERT INTO translations (locale, msgid, msgstr) VALUES ('de', 'Digitize', 'Digitalisierung');
-INSERT INTO translations (locale, msgid, msgstr) VALUES ('de', 'Overview', 'Ãœbersichtskarte');
-INSERT INTO translations (locale, msgid, msgstr) VALUES ('de', 'Drag Mapsize', 'Karte vergrößern');
+INSERT INTO translations (locale, msgid, msgstr) VALUES ('de', 'Overview', 'Übersichtskarte');
+INSERT INTO translations (locale, msgid, msgstr) VALUES ('de', 'Drag Mapsize', 'Karte vergrößern');
 INSERT INTO translations (locale, msgid, msgstr) VALUES ('de', 'Mapframe', 'Kartenfenster');
 INSERT INTO translations (locale, msgid, msgstr) VALUES ('de', 'Navigation Frame', 'Navigationsfenster');
-INSERT INTO translations (locale, msgid, msgstr) VALUES ('de', 'Scale Select', 'Auswahl des Maßstabes');
-INSERT INTO translations (locale, msgid, msgstr) VALUES ('de', 'Scale Text', 'Maßstab per Texteingabe');
-INSERT INTO translations (locale, msgid, msgstr) VALUES ('de', 'Scalebar', 'Maßstabsleiste');
-INSERT INTO translations (locale, msgid, msgstr) VALUES ('de', 'Set Background', 'Hintegrundkarte auswählen');
+INSERT INTO translations (locale, msgid, msgstr) VALUES ('de', 'Scale Select', 'Auswahl des Maßstabes');
+INSERT INTO translations (locale, msgid, msgstr) VALUES ('de', 'Scale Text', 'Maßstab per Texteingabe');
+INSERT INTO translations (locale, msgid, msgstr) VALUES ('de', 'Scalebar', 'Maßstabsleiste');
+INSERT INTO translations (locale, msgid, msgstr) VALUES ('de', 'Set Background', 'Hintegrundkarte auswählen');
 INSERT INTO translations (locale, msgid, msgstr) VALUES ('de', 'Zoom to Coordinates', 'Zu den Koordinaten zoomen');
-INSERT INTO translations (locale, msgid, msgstr) VALUES ('de', 'Change Password', 'Passwort ändern');
+INSERT INTO translations (locale, msgid, msgstr) VALUES ('de', 'Change Password', 'Passwort ändern');
 INSERT INTO translations (locale, msgid, msgstr) VALUES ('de', 'Load a web map context document', 'laden eines Web Map Context Dokumentes');
 INSERT INTO translations (locale, msgid, msgstr) VALUES ('de ', 'Logo', 'Logo');
 INSERT INTO translations (locale, msgid, msgstr) VALUES ('de', 'Measure distance', 'Streckenabschnittsmessung');
 
+--
+-- new table gui_kml
+--
+CREATE TABLE gui_kml (
+    kml_id serial,
+    fkey_mb_user_id integer NOT NULL,
+    fkey_gui_id character varying(50) NOT NULL,
+    kml_doc text NOT NULL,
+    kml_name character varying(64),
+    kml_description text,
+    kml_timestamp integer NOT NULL
+);
 
+ALTER TABLE ONLY gui_kml
+    ADD CONSTRAINT mb_gui_kml_pkey PRIMARY KEY (kml_id);
+
+ALTER TABLE ONLY gui_kml
+    ADD CONSTRAINT gui_kml_fkey_mb_user_id FOREIGN KEY (fkey_mb_user_id) REFERENCES mb_user(mb_user_id) ON UPDATE CASCADE ON DELETE CASCADE;
+
+ALTER TABLE ONLY gui_kml
+    ADD CONSTRAINT gui_kml_id_fkey_gui_id  FOREIGN KEY (fkey_gui_id) REFERENCES gui(gui_id) ON UPDATE CASCADE ON DELETE CASCADE;
+



More information about the Mapbender_commits mailing list