[PATCH] SCHEMA CHANGE: Add UUIDs to rivers

Wald Commits scm-commit at wald.intevation.org
Thu Feb 6 13:22:16 CET 2014


# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1391689330 -3600
# Node ID 44a9233c62eb322d952e109256f4fb853c045906
# Parent  1709c429818afd8d6ba14beb310b60637d91bd43
SCHEMA CHANGE: Add UUIDs to rivers.

diff -r 1709c429818a -r 44a9233c62eb backend/doc/schema/oracle.sql
--- a/backend/doc/schema/oracle.sql	Tue Feb 04 11:08:57 2014 +0100
+++ b/backend/doc/schema/oracle.sql	Thu Feb 06 13:22:10 2014 +0100
@@ -262,6 +262,7 @@
 
 CREATE TABLE rivers (
     id                  NUMBER(38,0) NOT NULL,
+    uuid                CHAR(37 CHAR),
     official_number     NUMBER(38,0),
     km_up               NUMBER(38,0) DEFAULT 0 NOT NULL,
     name                VARCHAR2(255) NOT NULL UNIQUE,
diff -r 1709c429818a -r 44a9233c62eb backend/doc/schema/postgresql.sql
--- a/backend/doc/schema/postgresql.sql	Tue Feb 04 11:08:57 2014 +0100
+++ b/backend/doc/schema/postgresql.sql	Thu Feb 06 13:22:10 2014 +0100
@@ -12,6 +12,7 @@
 
 CREATE TABLE rivers (
     id              int PRIMARY KEY NOT NULL,
+    uuid            CHAR(37),
     official_number int8,
     name            VARCHAR(256)    NOT NULL UNIQUE,
     km_up           BOOLEAN         NOT NULL DEFAULT true,


More information about the Dive4elements-commits mailing list