~ubuntu-branches/ubuntu/trusty/zendframework/trusty

« back to all changes in this revision

Viewing changes to library/Zend/Queue/Adapter/Db/queue_sqlite.sql

  • Committer: Bazaar Package Importer
  • Author(s): Frank Habermann
  • Date: 2010-04-28 20:10:00 UTC
  • mfrom: (1.3.1 upstream) (9.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20100428201000-o347bj5qb5i3tpot
Tags: 1.10.4-1
new upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
Sample grant for SQLite
 
3
 
 
4
CREATE ROLE queue LOGIN
 
5
  PASSWORD '[CHANGE ME]'
 
6
  NOSUPERUSER NOINHERIT NOCREATEDB NOCREATEROLE;
 
7
 
 
8
*/
 
9
 
 
10
--
 
11
-- Table structure for table `queue`
 
12
--
 
13
 
 
14
CREATE TABLE queue
 
15
(
 
16
  queue_id INTEGER PRIMARY KEY AUTOINCREMENT,
 
17
  queue_name VARCHAR(100) NOT NULL,
 
18
  timeout INTEGER NOT NULL DEFAULT 30
 
19
);
 
20
 
 
21
 
 
22
 
 
23
 
 
24
-- --------------------------------------------------------
 
25
--
 
26
-- Table structure for table `message`
 
27
--
 
28
 
 
29
CREATE TABLE message
 
30
(
 
31
  message_id INTEGER PRIMARY KEY AUTOINCREMENT,
 
32
  queue_id INTEGER PRIMARY KEY,
 
33
  handle CHAR(32),
 
34
  body VARCHAR(8192) NOT NULL,
 
35
  md5 CHAR(32) NOT NULL,
 
36
  timeout REAL,
 
37
  created INTEGER,
 
38
  FOREIGN KEY (queue_id) REFERENCES queue(queue_id)
 
39
);
 
40