diff options
| author | Martin Willi <martin@strongswan.org> | 2008-04-17 15:08:48 +0000 |
|---|---|---|
| committer | Martin Willi <martin@strongswan.org> | 2008-04-17 15:08:48 +0000 |
| commit | c4ec8c9d18ffd0cea68dd63267befc7d8713500e (patch) | |
| tree | a52b2ffcbc2aa8cae5a1ac1daaab767ec504a50d /src/charon/plugins/sql/sqlite.sql | |
| parent | b360e3933d84c5869d839ccd274fa191dc2daef0 (diff) | |
| download | strongswan-c4ec8c9d18ffd0cea68dd63267befc7d8713500e.tar.bz2 strongswan-c4ec8c9d18ffd0cea68dd63267befc7d8713500e.tar.xz | |
fixed compiler warning
Diffstat (limited to 'src/charon/plugins/sql/sqlite.sql')
| -rw-r--r-- | src/charon/plugins/sql/sqlite.sql | 36 |
1 files changed, 35 insertions, 1 deletions
diff --git a/src/charon/plugins/sql/sqlite.sql b/src/charon/plugins/sql/sqlite.sql index bf2d9f815..a3f527b90 100644 --- a/src/charon/plugins/sql/sqlite.sql +++ b/src/charon/plugins/sql/sqlite.sql @@ -150,6 +150,41 @@ CREATE TABLE shared_secret_identity ( PRIMARY KEY (shared_secret, identity) ); +DROP TABLE IF EXISTS pools; +CREATE TABLE pools ( + id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, + name TEXT NOT NULL, + start BLOB NOT NULL, + end BLOB NOT NULL, + next BLOB NOT NULL, + timeout INTEGER DEFAULT NULL +); +DROP INDEX IF EXISTS pools_name; +CREATE INDEX pools_name ON pools ( + name +); + +DROP TABLE IF EXISTS leases; +CREATE TABLE leases ( + id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, + pool INTEGER NOT NULL, + address BLOB NOT NULL, + identity INTEGER NOT NULL, + acquire INTEGER NOT NULL DEFAULT CURRENT_TIMESTAMP, + release INTEGER DEFAULT NULL +); +DROP INDEX IF EXISTS leases_pool; +CREATE INDEX leases_pool ON leases ( + pool +); +DROP INDEX IF EXISTS leases_identity; +CREATE INDEX leases_identity ON leases ( + identity +); +DROP INDEX IF EXISTS leases_release; +CREATE INDEX leases_release ON leases ( + release +); DROP TABLE IF EXISTS ike_sas; CREATE TABLE ike_sas ( @@ -167,7 +202,6 @@ CREATE TABLE ike_sas ( created INTEGER NOT NULL DEFAULT CURRENT_TIMESTAMP ); - DROP TABLE IF EXISTS logs; CREATE TABLE logs ( id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, |
