mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 23:30:12 +01:00
[Patch by lolindrath, #29] Added position column to postgreSQL and SQLite table db files. Also removed content from SQLite db file. So now all of the table db files for all 3 db include only table definitions, and the content file should work for all three formats.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@64 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
parent
e0606f8483
commit
086846e43b
3 changed files with 18 additions and 55 deletions
|
|
@ -10,23 +10,23 @@
|
|||
-- Dump of table contexts
|
||||
-- ------------------------------------------------------------
|
||||
|
||||
INSERT INTO contexts (id,name,hide) VALUES (1,'agenda',0);
|
||||
INSERT INTo contexts (id,name,hide) VALUES (2,'call',0);
|
||||
INSERT INTO contexts (id,name,hide) VALUES (3,'email',0);
|
||||
INSERT INTO contexts (id,name,hide) VALUES (4,'errand',0);
|
||||
INSERT INTO contexts (id,name,hide) VALUES (5,'lab',0);
|
||||
INSERT INTO contexts (id,name,hide) VALUES (6,'library',0);
|
||||
INSERT INTO contexts (id,name,hide) VALUES (7,'freetime',0);
|
||||
INSERT INTO contexts (id,name,hide) VALUES (8,'office',0);
|
||||
INSERT INTO contexts (id,name,hide) VALUES (11,'waiting-for',0);
|
||||
INSERT INTO contexts (id,name,hide, position) VALUES (1,'agenda',0, 0);
|
||||
INSERT INTo contexts (id,name,hide, position) VALUES (2,'call',0, 1);
|
||||
INSERT INTO contexts (id,name,hide, position) VALUES (3,'email',0, 2);
|
||||
INSERT INTO contexts (id,name,hide, position) VALUES (4,'errand',0, 3);
|
||||
INSERT INTO contexts (id,name,hide, position) VALUES (5,'lab',0, 4);
|
||||
INSERT INTO contexts (id,name,hide, position) VALUES (6,'library',0, 5);
|
||||
INSERT INTO contexts (id,name,hide, position) VALUES (7,'freetime',0, 6);
|
||||
INSERT INTO contexts (id,name,hide, position) VALUES (8,'office',0, 7);
|
||||
INSERT INTO contexts (id,name,hide, position) VALUES (11,'waiting-for',0, 8);
|
||||
|
||||
|
||||
-- Dump of table projects
|
||||
-- ------------------------------------------------------------
|
||||
|
||||
INSERT INTO projects (id,name) VALUES (1,'Build a working time machine');
|
||||
INSERT INTO projects (id,name) VALUES (2,'Make more money than Billy Gates');
|
||||
INSERT INTO projects (id,name) VALUES (3,'Evict dinosaurs from the garden');
|
||||
INSERT INTO projects (id,name, position) VALUES (1,'Build a working time machine', 0);
|
||||
INSERT INTO projects (id,name, position) VALUES (2,'Make more money than Billy Gates', 1);
|
||||
INSERT INTO projects (id,name, position) VALUES (3,'Evict dinosaurs from the garden', 2);
|
||||
|
||||
|
||||
-- Dump of table todos
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ create table contexts (
|
|||
id serial not null,
|
||||
name varchar(255) not null default '',
|
||||
hide int not null default 0,
|
||||
position int NOT NULL,
|
||||
primary key (id)
|
||||
);
|
||||
|
||||
|
|
@ -16,6 +17,7 @@ drop table projects;
|
|||
create table projects (
|
||||
id serial not null,
|
||||
name varchar(255) not null default '',
|
||||
position int NOT NULL,
|
||||
primary key (id)
|
||||
);
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,8 @@
|
|||
CREATE TABLE 'contexts' (
|
||||
'id' INTEGER PRIMARY KEY,
|
||||
'name' varchar(255) NOT NULL default '',
|
||||
'hide' tinyint(4) NOT NULL default '0'
|
||||
'hide' tinyint(4) NOT NULL default '0',
|
||||
position int NOT NULL
|
||||
) ;
|
||||
|
||||
|
||||
|
|
@ -17,7 +18,8 @@ CREATE TABLE 'contexts' (
|
|||
|
||||
CREATE TABLE 'projects' (
|
||||
'id' INTEGER PRIMARY KEY,
|
||||
'name' varchar(255) NOT NULL default ''
|
||||
'name' varchar(255) NOT NULL default '',
|
||||
position int NOT NULL
|
||||
) ;
|
||||
|
||||
|
||||
|
|
@ -49,44 +51,3 @@ CREATE TABLE 'users' (
|
|||
'word' varchar(255) default NULL,
|
||||
'is_admin' tinyint(4) NOT NULL default '0'
|
||||
) ;
|
||||
|
||||
-- Dump of table contexts
|
||||
-- ------------------------------------------------------------
|
||||
|
||||
INSERT INTO 'contexts' ('id','name','hide') VALUES ("1","agenda","0");
|
||||
INSERT INTO 'contexts' ('id','name','hide') VALUES ("2","call","0");
|
||||
INSERT INTO 'contexts' ('id','name','hide') VALUES ("3","email","0");
|
||||
INSERT INTO 'contexts' ('id','name','hide') VALUES ("4","errand","0");
|
||||
INSERT INTO 'contexts' ('id','name','hide') VALUES ("5","lab","0");
|
||||
INSERT INTO 'contexts' ('id','name','hide') VALUES ("6","library","0");
|
||||
INSERT INTO 'contexts' ('id','name','hide') VALUES ("7","freetime","0");
|
||||
INSERT INTO 'contexts' ('id','name','hide') VALUES ("8","office","0");
|
||||
INSERT INTO 'contexts' ('id','name','hide') VALUES ("11","waiting-for","0");
|
||||
|
||||
|
||||
-- Dump of table projects
|
||||
-- ------------------------------------------------------------
|
||||
|
||||
INSERT INTO 'projects' ('id','name') VALUES ("1","Build a working time machine");
|
||||
INSERT INTO 'projects' ('id','name') VALUES ("2","Make more money than Billy Gates");
|
||||
INSERT INTO 'projects' ('id','name') VALUES ("3","Evict dinosaurs from the garden");
|
||||
|
||||
|
||||
-- Dump of table todos
|
||||
-- ------------------------------------------------------------
|
||||
|
||||
INSERT INTO 'todos' ('id','context_id','description','notes','done','created','due','completed','project_id') VALUES ("1","1","Call Bill Gates to find out how much he makes per day","","0","2004-11-28 16:01:00","2004-10-30",NULL,"2");
|
||||
INSERT INTO 'todos' ('id','context_id','description','notes','done','created','due','completed','project_id') VALUES ("52","2","Call dinosaur exterminator","Ask him if I need to hire a skip for the corpses.","0","2004-11-28 16:06:08","2004-11-30",NULL,"3");
|
||||
INSERT INTO 'todos' ('id','context_id','description','notes','done','created','due','completed','project_id') VALUES ("53","4","Buy milk","","1","2004-11-28 16:06:31",NULL,"2004-11-28 16:06:42",NULL);
|
||||
INSERT INTO 'todos' ('id','context_id','description','notes','done','created','due','completed','project_id') VALUES ("54","4","Buy bread","","1","2004-11-28 16:06:58",NULL,"2004-11-30 13:41:09",NULL);
|
||||
INSERT INTO 'todos' ('id','context_id','description','notes','done','created','due','completed','project_id') VALUES ("55","5","Construct time dilation device","","0","2004-11-28 16:07:33",NULL,NULL,"1");
|
||||
INSERT INTO 'todos' ('id','context_id','description','notes','done','created','due','completed','project_id') VALUES ("56","2","Phone Grandfather to ask about the paradox","Added some _notes_.","0","2004-11-28 16:08:33","2004-12-30",NULL,"1");
|
||||
INSERT INTO 'todos' ('id','context_id','description','notes','done','created','due','completed','project_id') VALUES ("61","6","Get a book out of the library","Dinosaurs\'R\'Us","0","2004-12-22 14:07:06",NULL,NULL,"3");
|
||||
INSERT INTO 'todos' ('id','context_id','description','notes','done','created','due','completed','project_id') VALUES ("60","4","Upgrade to Rails 0.9.1","","1","2004-12-20 17:02:52","2004-12-21","2004-12-20 17:06:48",NULL);
|
||||
INSERT INTO 'todos' ('id','context_id','description','notes','done','created','due','completed','project_id') VALUES ("65","1","This should be due today","","0","2004-12-31 17:23:06","2004-12-31",NULL,NULL);
|
||||
INSERT INTO 'todos' ('id','context_id','description','notes','done','created','due','completed','project_id') VALUES ("75","1","foo","","1","2004-12-31 18:38:34","2005-01-05","2005-01-02 12:27:10",NULL);
|
||||
INSERT INTO 'todos' ('id','context_id','description','notes','done','created','due','completed','project_id') VALUES ("81","1","Buy shares","","0","2005-01-01 12:40:26","2005-02-01",NULL,"2");
|
||||
INSERT INTO 'todos' ('id','context_id','description','notes','done','created','due','completed','project_id') VALUES ("85","1","Buy stegosaurus bait","","1","2005-01-01 12:53:12","2005-01-02","2005-01-01 12:53:43","3");
|
||||
INSERT INTO 'todos' ('id','context_id','description','notes','done','created','due','completed','project_id') VALUES ("92","1","New action in context","Some notes","1","2005-01-02 14:52:49","2005-03-01","2005-01-02 15:44:19","3");
|
||||
INSERT INTO 'todos' ('id','context_id','description','notes','done','created','due','completed','project_id') VALUES ("97","2","Call stock broker","tel: 12345","0","2005-01-03 11:38:25",NULL,NULL,"2");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue