[PATCH] Schema change: Store station of cross section lines with higher precision to avoid duplicates due to rounding

Wald Commits scm-commit at wald.intevation.org
Wed Jul 31 14:29:24 CEST 2013


# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1375273752 -7200
# Branch double-precision
# Node ID 839f1a889c4a7a4dfb4145f9987445ea6a75288c
# Parent  d2fddd344d7c4a80387cd0e4dacc49bffb1c9b40
Schema change: Store station of cross section lines with higher precision to avoid duplicates due to rounding.

diff -r d2fddd344d7c -r 839f1a889c4a backend/doc/schema/oracle.sql
--- a/backend/doc/schema/oracle.sql	Wed Jul 31 12:31:09 2013 +0200
+++ b/backend/doc/schema/oracle.sql	Wed Jul 31 14:29:12 2013 +0200
@@ -38,7 +38,7 @@
 
 CREATE TABLE cross_section_lines (
     id                  NUMBER(38,0) NOT NULL,
-    km                  NUMBER(38,2) NOT NULL,
+    km                  NUMBER(38,5) NOT NULL,
     cross_section_id    NUMBER(38,0) NOT NULL, 
     PRIMARY KEY         (id),
     UNIQUE (km, cross_section_id)


More information about the Dive4elements-commits mailing list