-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtasks_schema.sql
More file actions
19 lines (16 loc) · 844 Bytes
/
tasks_schema.sql
File metadata and controls
19 lines (16 loc) · 844 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
CREATE TABLE IF NOT EXISTS tasks (
id INTEGER PRIMARY KEY AUTOINCREMENT,
name CHAR(100) NOT NULL,
closed BOOL NOT NULL
);
INSERT OR IGNORE INTO tasks (id, name, closed) VALUES (1, 'Start learning Pyramid', 0);
INSERT OR IGNORE INTO tasks (id, name, closed) VALUES (2, 'Do quick tutorial', 0);
INSERT OR IGNORE INTO tasks (id, name, closed) VALUES (3, 'Have some beer!', 0);
CREATE TABLE IF NOT EXISTS urls (
id INTEGER PRIMARY KEY AUTOINCREMENT,
text CHAR(100) NOT NULL,
url CHAR(1000) NOT NULL
);
INSERT OR IGNORE INTO urls (id, text, url) VALUES (1, 'The Python website', 'http://python.org');
INSERT OR IGNORE INTO urls (id, text, url) VALUES (2, 'The Deer Park website', 'http://deerparkmonastery.org');
INSERT OR IGNORE INTO urls (id, text, url) VALUES (3, 'The Plum Village website', 'http://plumvillage.org');