diff flys-backend/doc/schema/postgresql.sql @ 3796:61195d14b844

FLYS backend: Fixed postgresql scheme. flys-backend/trunk@5445 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Wed, 12 Sep 2012 16:51:38 +0000
parents 3442304b430a
children 948c7289fc42
line wrap: on
line diff
--- a/flys-backend/doc/schema/postgresql.sql	Wed Sep 12 11:12:19 2012 +0000
+++ b/flys-backend/doc/schema/postgresql.sql	Wed Sep 12 16:51:38 2012 +0000
@@ -280,12 +280,6 @@
     description      VARCHAR(256)
 );
 
--- Indices for faster access of the points
-CREATE INDEX cross_section_lines_km_idx
-    ON cross_section_lines(km);
-CREATE INDEX cross_section_points_line_idx
-    ON cross_section_points(cross_section_line_id);
-
 CREATE SEQUENCE CROSS_SECTION_LINES_ID_SEQ;
 
 CREATE TABLE cross_section_lines (
@@ -306,6 +300,12 @@
     UNIQUE (cross_section_line_id, col_pos)
 );
 
+-- Indices for faster access of the points
+CREATE INDEX cross_section_lines_km_idx
+    ON cross_section_lines(km);
+CREATE INDEX cross_section_points_line_idx
+    ON cross_section_points(cross_section_line_id);
+
 -- Hydraulische Kenngroessen
 
 CREATE SEQUENCE HYKS_ID_SEQ;

http://dive4elements.wald.intevation.org