[Dive4elements-commits] [PATCH 1 of 4] SCHEMA CHANGE! Renamed columns in sq_relation and sq_relation_value
Wald Commits
scm-commit at wald.intevation.org
Tue Mar 26 14:03:46 CET 2013
# HG changeset patch
# User Raimund Renkert <rrenkert at intevation.de>
# Date 1364302568 -3600
# Node ID 6875a9f02097d5b27512e64d7f8afb5a8d23cd9d
# Parent a137cbab32a81b9bc863c5aefda9e159c9cc3801
SCHEMA CHANGE! Renamed columns in sq_relation and sq_relation_value.
diff -r a137cbab32a8 -r 6875a9f02097 flys-backend/doc/schema/oracle-minfo.sql
--- a/flys-backend/doc/schema/oracle-minfo.sql Tue Mar 26 12:26:48 2013 +0100
+++ b/flys-backend/doc/schema/oracle-minfo.sql Tue Mar 26 13:56:08 2013 +0100
@@ -319,19 +319,19 @@
CREATE SEQUENCE SQ_RELATION_VALUES_ID_SEQ;
CREATE TABLE sq_relation_value (
- id NUMBER(38,0) NOT NULL,
- sq_relation_id NUMBER(38,0) NOT NULL,
- m_station_id NUMBER(38,0) NOT NULL,
- parameter VARCHAR(16) NOT NULL,
- fraction VARCHAR(32) NOT NULL,
- a NUMBER(38,20) NOT NULL,
- b NUMBER(38,20) NOT NULL,
- q_max NUMBER(38,20),
- r_sq NUMBER(38,3),
- n_tot NUMBER(38,0),
- n_outl NUMBER(38,0),
- cferguson NUMBER(38,20),
- cduan NUMBER(38,20),
+ id NUMBER(38,0) NOT NULL,
+ sq_relation_id NUMBER(38,0) NOT NULL,
+ measurement_station_id NUMBER(38,0) NOT NULL,
+ parameter VARCHAR(16) NOT NULL,
+ fraction VARCHAR(32) NOT NULL,
+ a NUMBER(38,20) NOT NULL,
+ b NUMBER(38,20) NOT NULL,
+ qmax NUMBER(38,20),
+ rsq NUMBER(38,3),
+ ntot NUMBER(38,0),
+ noutl NUMBER(38,0),
+ cferguson NUMBER(38,20),
+ cduan NUMBER(38,20),
PRIMARY KEY (id),
CONSTRAINT fk_sqr_id FOREIGN KEY (sq_relation_id) REFERENCES sq_relation(id),
CONSTRAINT fk_mstation_id FOREIGN KEY (m_station_id) REFERENCES measurement_station(id)
diff -r a137cbab32a8 -r 6875a9f02097 flys-backend/doc/schema/postgresql-minfo.sql
--- a/flys-backend/doc/schema/postgresql-minfo.sql Tue Mar 26 12:26:48 2013 +0100
+++ b/flys-backend/doc/schema/postgresql-minfo.sql Tue Mar 26 13:56:08 2013 +0100
@@ -319,19 +319,19 @@
CREATE SEQUENCE SQ_RELATION_VALUES_ID_SEQ;
CREATE TABLE sq_relation_value (
- id int NOT NULL,
- sq_relation_id int NOT NULL,
- m_station_id int NOT NULL,
- parameter VARCHAR(16) NOT NULL,
- fraction VARCHAR(32) NOT NULL,
- a NUMERIC NOT NULL,
- b NUMERIC NOT NULL,
- q_max NUMERIC,
- r_sq NUMERIC,
- n_tot int,
- n_outl int,
- cferguson NUMERIC,
- cduan NUMERIC,
+ id int NOT NULL,
+ sq_relation_id int NOT NULL,
+ measurement_station_id int NOT NULL,
+ parameter VARCHAR(16) NOT NULL,
+ fraction VARCHAR(32) NOT NULL,
+ a NUMERIC NOT NULL,
+ b NUMERIC NOT NULL,
+ qmax NUMERIC,
+ rsq NUMERIC,
+ ntot int,
+ noutl int,
+ cferguson NUMERIC,
+ cduan NUMERIC,
PRIMARY KEY (id),
CONSTRAINT fk_sqr_id FOREIGN KEY (sq_relation_id) REFERENCES sq_relation(id) ON DELETE CASCADE,
CONSTRAINT fk_mstation_id FOREIGN KEY (m_station_id) REFERENCES measurement_station(id)
More information about the Dive4elements-commits
mailing list