rrs-commit: r34 - in trunk: . update/0.3-0.4

decibel at decibel.org decibel at decibel.org
Sun Mar 6 22:23:36 GMT 2005


Author: decibel
Date: Sun Mar  6 22:23:35 2005
New Revision: 34

Added:
   trunk/update/0.3-0.4/
   trunk/update/0.3-0.4/rrs.sql   (contents, props changed)
Modified:
   trunk/update.sh
Log:
Update scripts

Modified: trunk/update.sh
==============================================================================
--- trunk/update.sh	(original)
+++ trunk/update.sh	Sun Mar  6 22:23:35 2005
@@ -8,6 +8,6 @@
 USER=$1
 DBNAME=$2
 
-psql -U $USER -f update/0.2-0.3/rrs.sql $DBNAME
+psql -U $USER -f update/0.3-0.4/rrs.sql $DBNAME
 psql -U $USER -f util_functions.sql $DBNAME
 psql -U $USER -f rrs_functions.sql $DBNAME

Added: trunk/update/0.3-0.4/rrs.sql
==============================================================================
--- (empty file)
+++ trunk/update/0.3-0.4/rrs.sql	Sun Mar  6 22:23:35 2005
@@ -0,0 +1,20 @@
+-- Copyright (c) 2004, Jim C. Nasby (decibel at rrs.decibel.org)
+-- All rights reserved.
+--
+-- $Id$
+
+CREATE TABLE setting (
+    setting_name    text    NOT NULL CONSTRAINT setting__name PRIMARY KEY
+    , setting       text    NOT NULL
+) WITHOUT OIDS;
+
+CREATE TABLE history (
+	start_time	timestamp with time zone CONSTRAINT history__start PRIMARY KEY
+	, end_time	timestamp with time zone NOT NULL
+) WITHOUT OIDs;
+
+CREATE TABLE history_data_interval (
+	data_interval	interval	NOT NULL
+) INHERITS( history ) WITHOUT OIDs;
+
+-- vi: expandtab sw=4 ts=4


More information about the rrs-commit mailing list