From: arjen Date: Sun, 16 Feb 2003 08:24:06 +0000 (+0000) Subject: Added a new entry to the action table: Notification was displayed in the listing X-Git-Tag: V0_0_5~19 X-Git-Url: http://www.andromeda.nl/gitweb/?p=gnucomo.git;a=commitdiff_plain;h=95f241b8e1186e37144f2d693a72785ac834e03a Added a new entry to the action table: Notification was displayed in the listing --- diff --git a/src/database/create.sql b/src/database/create.sql index 9cd0309..219abe0 100644 --- a/src/database/create.sql +++ b/src/database/create.sql @@ -12,7 +12,10 @@ -- DBA create the database and give access permissions. -- -- $Log: create.sql,v $ --- Revision 1.10 2003-02-14 06:32:27 arjen +-- Revision 1.11 2003-02-16 08:24:38 arjen +-- Added a new entry to the action table: Notification was displayed in the listing +-- +-- Revision 1.10 2003/02/14 06:32:27 arjen -- Setup the groups and database permissions. The three groups -- are: view, ops and admin. -- Added a new entry to the action table. @@ -70,6 +73,7 @@ COPY "action" FROM stdin; 18 Notification closed cls The notification has been closed. 19 Notification reopend opn The notification has been reopend. 20 Redisplayed to user \N The notification has been presented to a user. This is not the first time +21 Displayed in list \N The notification has been presented in a list with other notifications. \. CREATE UNIQUE INDEX action_actionid_key ON "action" USING btree (actionid); @@ -124,7 +128,7 @@ CREATE TABLE "db_value" COPY "db_value" FROM stdin; -db_version 28 +db_version 31 gcm_daemon_version 1 log_processing 0 last_notification 0 diff --git a/src/gcm_daemon/classes/gnucomo_db_version.php b/src/gcm_daemon/classes/gnucomo_db_version.php index e69ca90..a32e8ed 100644 --- a/src/gcm_daemon/classes/gnucomo_db_version.php +++ b/src/gcm_daemon/classes/gnucomo_db_version.php @@ -280,9 +280,15 @@ case 28: case 29: $local_sql = "INSERT INTO action (actionname, description) VALUES ('Redisplayed to user', " . "'The notification has been presented to a user. This is not the first time')"; - echo $local_sql; $dbms->query ($local_sql); +case 30: + $local_sql = "INSERT INTO action (actionname, description) VALUES ('Displayed in list', " + . "'The notification has been presented in a list with other notifications.')"; + $dbms->query ($local_sql); + + + /* //These columns have to be removed when a new version of PGSQL has become mainstream that supportsa DROP COLUMN $local_sql = "ALTER TABLE log DROP COLUMN recognized"; diff --git a/src/gcm_daemon/gcm_daemon.php b/src/gcm_daemon/gcm_daemon.php index b9d8bcb..3be6fe2 100755 --- a/src/gcm_daemon/gcm_daemon.php +++ b/src/gcm_daemon/gcm_daemon.php @@ -20,7 +20,7 @@ */ -// $Id: gcm_daemon.php,v 1.7 2003-02-14 06:35:09 arjen Exp $ +// $Id: gcm_daemon.php,v 1.8 2003-02-16 08:24:06 arjen Exp $ ini_set('include_path', '.:./classes:../phpclasses'); @@ -37,7 +37,7 @@ require_once "gnucomo.process_log.php"; $project_name = "gnucomo"; //name of the entire project $app_name = "gcm_daemon"; //name of the application running $developrelease = "TRUE"; //Indicates if special debug settings are needed -$db_version = 30; //The db_version indicates what the level of +$db_version = 31; //The db_version indicates what the level of //the database should be. If the database is //old an update will be generated. $gcmd_version = 3; //This value indicates the active version of the gcm_daemon,