Added new tables to the database: parameter_class and parameter_notification
[gnucomo.git] / src / database / create.sql
index dc66c84..992f656 100644 (file)
 -- DBA create the database and give access permissions.
 --
 --  $Log: create.sql,v $
---  Revision 1.5  2003-01-18 08:46:48  arjen
+--  Revision 1.6  2003-01-20 07:29:48  arjen
+--  Added new tables to the database: parameter_class and parameter_notification
+--
+--  Revision 1.5  2003/01/18 08:46:48  arjen
 --  Added new records to the 'type_of_issue' table.
 --  Changed semantics of actionid 9 in the 'action' table.
 --
@@ -103,7 +106,7 @@ CREATE TABLE "db_value"
 
 
 COPY "db_value" FROM stdin;
-db_version     20
+db_version     21
 gcm_daemon_version     1
 log_processing 0
 \.
@@ -428,6 +431,36 @@ SELECT setval ('"paramid_seq"', 1, true);
 --
 --
 
+CREATE TABLE "parameter_class"
+(
+   "name"             text,     --  Name of the class: see parameter.class
+   "property_name"    text,
+   "description"      text,
+   "property_type"    text,     --  STATIC or DYNAMIC
+   "min"              float,    --  Default minimum value
+   "max"              float,    --  Default maximum value
+   "notify"           boolean,  --  Notify if something changes ?
+
+   primary key (name, property_name)
+);
+
+INSERT INTO parameter_class (name, property_name, description, property_type, notify)
+  VALUES ('package', 'version', 'The installed version of the package', 'STATIC', 't');
+
+--
+--
+
+CREATE TABLE "parameter_notification"
+(
+   "notificationid" bigint,
+   "paramid"        bigint,
+
+   primary key (notificationid, paramid)
+);
+
+--
+--
+
 CREATE TABLE "priority"
 (
        "priority" integer,