comparison test_data/getan_test_data.py @ 500:f751499d3f8d

merged, Updated TODO, CHANGES
author Magnus Schieder <mschieder@intevation.de>
date Mon, 17 Sep 2018 20:41:28 +0200
parents 199b3e3657aa
children
comparison
equal deleted inserted replaced
498:1648ae282b7e 500:f751499d3f8d
28 active BOOLEAN DEFAULT 1) 28 active BOOLEAN DEFAULT 1)
29 ''') 29 ''')
30 30
31 db.execute('''CREATE TABLE entries ( 31 db.execute('''CREATE TABLE entries (
32 id INTEGER PRIMARY KEY AUTOINCREMENT, 32 id INTEGER PRIMARY KEY AUTOINCREMENT,
33 project_id INTEGER REFERENCES projects(id),
34 start_time TIMESTAMP NOT NULL,
35 stop_time TIMESTAMP NOT NULL,
36 description VARCHAR(256),
37
38 CHECK (strftime('%s', start_time) <= strftime('%s', stop_time)))
39 ''')
40
41 db.execute('''CREATE TABLE recover (
42 id INTEGER PRIMARY KEY,
33 project_id INTEGER REFERENCES projects(id), 43 project_id INTEGER REFERENCES projects(id),
34 start_time TIMESTAMP NOT NULL, 44 start_time TIMESTAMP NOT NULL,
35 stop_time TIMESTAMP NOT NULL, 45 stop_time TIMESTAMP NOT NULL,
36 description VARCHAR(256), 46 description VARCHAR(256),
37 47
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)