Skip to content

Commit

Permalink
Increase SMSD database version and document changes
Browse files Browse the repository at this point in the history
Issue #147

Signed-off-by: Michal Čihař <michal@cihar.com>
  • Loading branch information
nijel committed Nov 26, 2015
1 parent 63f778c commit ee4ee6f
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions docs/manual/smsd/tables.rst
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,12 @@ History of database structure

History of schema versions:

15

Added ``Retries`` field.

.. versionchanged:: 1.36.7

14

Added ``NetCode`` and ``NetName`` fields.
Expand Down
2 changes: 1 addition & 1 deletion docs/sql/mysql.sql
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ CREATE TABLE `gammu` (
-- Dumping data for table `gammu`
--

INSERT INTO `gammu` (`Version`) VALUES (14);
INSERT INTO `gammu` (`Version`) VALUES (15);

-- --------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion docs/sql/pgsql.sql
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ CREATE TABLE gammu (
-- Dumping data for table "gammu"
--

INSERT INTO gammu ("Version") VALUES (14);
INSERT INTO gammu ("Version") VALUES (15);

-- --------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion docs/sql/sqlite.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ CREATE TABLE gammu (
Version INTEGER NOT NULL DEFAULT '0'
);

INSERT INTO gammu (Version) VALUES (14);
INSERT INTO gammu (Version) VALUES (15);

CREATE TABLE inbox (
UpdatedInDB NUMERIC NOT NULL DEFAULT (datetime('now')),
Expand Down
2 changes: 1 addition & 1 deletion smsd/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

#define SMSD_SHM_KEY (0xface)
#define SMSD_SHM_VERSION (1)
#define SMSD_DB_VERSION (14)
#define SMSD_DB_VERSION (15)

#include "log.h"

Expand Down

0 comments on commit ee4ee6f

Please sign in to comment.