Updated the content SQL file to work with the new schemas. This file ''does not'' contain any data for the users table. You need to visit http://YOURURL/signup to set up new users.

git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@134 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
bsag 2005-08-10 13:41:12 +00:00
parent fa795bf066
commit 21a37286b3
5 changed files with 69 additions and 61 deletions

View file

@ -1,48 +0,0 @@
-- CocoaMySQL dump
-- Version 0.5
-- http://cocoamysql.sourceforge.net
--
-- Host: localhost (MySQL 4.0.20-max)
-- Database: todo
-- Generation Time: 2005-03-02 15:40:19 +0000
-- ************************************************************
-- Dump of table contexts
-- ------------------------------------------------------------
INSERT INTO contexts (id,name,hide, position) VALUES (1,'agenda',0, 1);
INSERT INTO contexts (id,name,hide, position) VALUES (2,'call',0, 2);
INSERT INTO contexts (id,name,hide, position) VALUES (3,'email',0, 3);
INSERT INTO contexts (id,name,hide, position) VALUES (4,'errand',0, 4);
INSERT INTO contexts (id,name,hide, position) VALUES (5,'lab',0, 5);
INSERT INTO contexts (id,name,hide, position) VALUES (6,'library',0, 6);
INSERT INTO contexts (id,name,hide, position) VALUES (7,'freetime',0, 7);
INSERT INTO contexts (id,name,hide, position) VALUES (8,'office',0, 8);
INSERT INTO contexts (id,name,hide, position) VALUES (11,'waiting-for',0, 9);
-- Dump of table projects
-- ------------------------------------------------------------
INSERT INTO projects (id,name,position,done) VALUES (1,'Build a working time machine',1,0);
INSERT INTO projects (id,name,position,done) VALUES (2,'Make more money than Billy Gates',2,0);
INSERT INTO projects (id,name,position,done) VALUES (3,'Evict dinosaurs from the garden',3,0);
-- 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);

View file

@ -0,0 +1,56 @@
-- Dump of table contents
-- Sample data to populate your database
-- No data is included for users: create your own users via the http://YOURURL/signup page
-- Dump of table contexts
-- ------------------------------------------------------------
INSERT INTO contexts (id,name,position,hide,user_id) VALUES (1,'agenda',1,0,1);
INSERT INTO contexts (id,name,position,hide,user_id) VALUES (2,'call',2,0,1);
INSERT INTO contexts (id,name,position,hide,user_id) VALUES (3,'email',3,0,1);
INSERT INTO contexts (id,name,position,hide,user_id) VALUES (4,'errand',4,0,1);
INSERT INTO contexts (id,name,position,hide,user_id) VALUES (5,'lab',5,0,1);
INSERT INTO contexts (id,name,position,hide,user_id) VALUES (6,'library',6,0,1);
INSERT INTO contexts (id,name,position,hide,user_id) VALUES (7,'freetime',7,0,1);
INSERT INTO contexts (id,name,position,hide,user_id) VALUES (8,'office',8,0,1);
INSERT INTO contexts (id,name,position,hide,user_id) VALUES (11,'waiting-for',9,0,1);
-- Dump of table notes
-- ------------------------------------------------------------
INSERT INTO notes (id,user_id,project_id,body,created_at,updated_at) VALUES (1,1,1,'Notes on building time machines.','2005-08-07 17:31:25','2005-08-07 17:31:25');
-- Dump of table projects
-- ------------------------------------------------------------
INSERT INTO projects (id,name,position,done,user_id) VALUES (1,'Build a working time machine',1,0,1);
INSERT INTO projects (id,name,position,done,user_id) VALUES (2,'Make more money than Billy Gates',2,0,1);
INSERT INTO projects (id,name,position,done,user_id) VALUES (3,'Evict dinosaurs from the garden',3,0,1);
-- Dump of table schema_info
-- ------------------------------------------------------------
INSERT INTO schema_info (version) VALUES (4);
-- Dump of table todos
-- ------------------------------------------------------------
INSERT INTO todos (id,context_id,project_id,description,notes,done,created_at,due,completed,user_id) VALUES (1,1,2,'Call Bill Gates to find out how much he makes per day',NULL,0,'2004-11-28 16:01:00','2004-10-30',NULL,1);
INSERT INTO todos (id,context_id,project_id,description,notes,done,created_at,due,completed,user_id) VALUES (2,2,3,'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,1);
INSERT INTO todos (id,context_id,project_id,description,notes,done,created_at,due,completed,user_id) VALUES (3,4,NULL,'Buy milk',NULL,1,'2004-11-28 16:06:31',NULL,'2004-11-28 00:00:00',1);
INSERT INTO todos (id,context_id,project_id,description,notes,done,created_at,due,completed,user_id) VALUES (4,4,NULL,'Buy bread',NULL,1,'2004-11-28 16:06:58',NULL,'2004-11-28 00:00:00',1);
INSERT INTO todos (id,context_id,project_id,description,notes,done,created_at,due,completed,user_id) VALUES (5,5,1,'Construct time dilation device',NULL,0,'2004-11-28 16:07:33',NULL,NULL,1);
INSERT INTO todos (id,context_id,project_id,description,notes,done,created_at,due,completed,user_id) VALUES (6,2,1,'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,project_id,description,notes,done,created_at,due,completed,user_id) VALUES (7,6,3,'Get a book out of the library','Dinosaurs R Us',0,'2004-12-22 14:07:06',NULL,NULL,1);
INSERT INTO todos (id,context_id,project_id,description,notes,done,created_at,due,completed,user_id) VALUES (8,4,NULL,'Upgrade to Rails 0.9.1',NULL,1,'2004-12-20 17:02:52','2004-12-21','2004-12-20 00:00:00',1);
INSERT INTO todos (id,context_id,project_id,description,notes,done,created_at,due,completed,user_id) VALUES (9,1,NULL,'This should be due today',NULL,0,'2004-12-31 17:23:06','2004-12-31',NULL,1);
INSERT INTO todos (id,context_id,project_id,description,notes,done,created_at,due,completed,user_id) VALUES (10,1,NULL,'foo',NULL,1,'2004-12-31 18:38:34','2005-01-05','2005-01-02 12:27:10',1);
INSERT INTO todos (id,context_id,project_id,description,notes,done,created_at,due,completed,user_id) VALUES (11,1,2,'Buy shares',NULL,0,'2005-01-01 12:40:26','2005-02-01',NULL,1);
INSERT INTO todos (id,context_id,project_id,description,notes,done,created_at,due,completed,user_id) VALUES (12,1,3,'Buy stegosaurus bait',NULL,1,'2005-01-01 12:53:12','2005-01-02','2005-01-01 15:44:19',1);
INSERT INTO todos (id,context_id,project_id,description,notes,done,created_at,due,completed,user_id) VALUES (13,1,3,'New action in context','Some notes',1,'2005-01-02 14:52:49','2005-03-01','2005-01-02 15:44:19',1);
INSERT INTO todos (id,context_id,project_id,description,notes,done,created_at,due,completed,user_id) VALUES (14,2,2,'Call stock broker','tel: 12345',0,'2005-01-03 11:38:25',NULL,NULL,1);

View file

@ -13,7 +13,7 @@ CREATE TABLE `contexts` (
`name` varchar(255) NOT NULL default '', `name` varchar(255) NOT NULL default '',
`position` int(11) NOT NULL default '0', `position` int(11) NOT NULL default '0',
`hide` tinyint(1) default '0', `hide` tinyint(1) default '0',
`user_id` int(11) NOT NULL default '0', `user_id` int(11) NOT NULL default '1',
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) TYPE=InnoDB; ) TYPE=InnoDB;
@ -25,7 +25,7 @@ CREATE TABLE `projects` (
`name` varchar(255) NOT NULL default '', `name` varchar(255) NOT NULL default '',
`position` int(11) NOT NULL default '0', `position` int(11) NOT NULL default '0',
`done` tinyint(1) default '0', `done` tinyint(1) default '0',
`user_id` int(11) NOT NULL default '0', `user_id` int(11) NOT NULL default '1',
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) TYPE=InnoDB; ) TYPE=InnoDB;
@ -50,7 +50,7 @@ CREATE TABLE `todos` (
`created_at` datetime default NULL, `created_at` datetime default NULL,
`due` date default NULL, `due` date default NULL,
`completed` datetime default NULL, `completed` datetime default NULL,
`user_id` int(11) NOT NULL default '0', `user_id` int(11) NOT NULL default '1',
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) TYPE=InnoDB; ) TYPE=InnoDB;
@ -71,7 +71,7 @@ CREATE TABLE `users` (
CREATE TABLE `notes` ( CREATE TABLE `notes` (
`id` int(11) NOT NULL auto_increment, `id` int(11) NOT NULL auto_increment,
`user_id` int(11) NOT NULL default '0', `user_id` int(11) NOT NULL default '1',
`project_id` int(11) NOT NULL default '0', `project_id` int(11) NOT NULL default '0',
`body` text, `body` text,
`created_at` datetime default '0000-00-00 00:00:00', `created_at` datetime default '0000-00-00 00:00:00',

View file

@ -13,7 +13,7 @@ create table contexts (
name varchar(255) not null default '', name varchar(255) not null default '',
hide int not null default 0, hide int not null default 0,
position int not null, position int not null,
user_id int not null default 0, user_id int not null default 1,
primary key (id) primary key (id)
); );
@ -27,7 +27,7 @@ create table projects (
name varchar(255) not null default '', name varchar(255) not null default '',
position int not null, position int not null,
done int not null default 0, done int not null default 0,
user_id int not null default 0, user_id int not null default 1,
primary key (id) primary key (id)
); );
@ -49,7 +49,7 @@ create table todos (
due date default null, due date default null,
completed timestamp default null, completed timestamp default null,
project_id int default null, project_id int default null,
user_id int not null default 0, user_id int not null default 1,
primary key (id) primary key (id)
); );
@ -75,7 +75,7 @@ create table notes (
body text, body text,
created_at timestamp default null, created_at timestamp default null,
updated_at timestamp default null, updated_at timestamp default null,
user_id int not null default 0, user_id int not null default 1,
primary key (id) primary key (id)
); );

View file

@ -9,7 +9,7 @@ CREATE TABLE 'contexts' (
'name' varchar(255) NOT NULL default '', 'name' varchar(255) NOT NULL default '',
'hide' tinyint(4) NOT NULL default '0', 'hide' tinyint(4) NOT NULL default '0',
'position' int NOT NULL, 'position' int NOT NULL,
'user_id' INTEGER NOT NULL default '0' 'user_id' int NOT NULL default '1'
) ; ) ;
@ -22,14 +22,14 @@ CREATE TABLE 'projects' (
'name' varchar(255) NOT NULL default '', 'name' varchar(255) NOT NULL default '',
'position' int NOT NULL, 'position' int NOT NULL,
'done' tinyint(4) NOT NULL default '0', 'done' tinyint(4) NOT NULL default '0',
'user_id' INTEGER NOT NULL default '0' 'user_id' int NOT NULL default '1'
) ; ) ;
-- Dump of table schema_info -- Dump of table schema_info
CREATE TABLE 'schema_info' ( CREATE TABLE 'schema_info' (
'version' INTEGER default NULL 'version' INTEGER default NULL
) ) ;
-- Dump of table todos -- Dump of table todos
-- ------------------------------------------------------------ -- ------------------------------------------------------------
@ -44,7 +44,7 @@ CREATE TABLE 'todos' (
'due' date default NULL, 'due' date default NULL,
'completed' datetime default NULL, 'completed' datetime default NULL,
'project_id' int(11) default NULL, 'project_id' int(11) default NULL,
'user_id' INTEGER NOT NULL default '0' 'user_id' int NOT NULL default '1'
) ; ) ;
@ -69,6 +69,6 @@ CREATE TABLE 'notes' (
'body' text, 'body' text,
'created_at' datetime NOT NULL default '0000-00-00 00:00:00', 'created_at' datetime NOT NULL default '0000-00-00 00:00:00',
'updated_at' datetime default '0000-00-00 00:00:00', 'updated_at' datetime default '0000-00-00 00:00:00',
'user_id' INTEGER NOT NULL default '0' 'user_id' int NOT NULL default '1'
) ; ) ;