mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-31 21:21:49 +01:00
{{{
ruby -i.bak -pe 'gsub!("#!/usr/bin/env ruby", "#!c:/ruby/bin/ruby")' public/dispatch.* script/*
}}}
I also failed to add the new user-related files and the new migrate task last time I committed, so those are added now.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@141 a4c988fc-2ded-0310-b66e-134b36920a42
56 lines
1.6 KiB
SQL
56 lines
1.6 KiB
SQL
CREATE TABLE `contexts` (
|
|
`id` int(11) NOT NULL auto_increment,
|
|
`name` varchar(255) NOT NULL default '',
|
|
`position` int(11) NOT NULL default '0',
|
|
`hide` tinyint(1) default '0',
|
|
`user_id` int(11) NOT NULL default '0',
|
|
PRIMARY KEY (`id`)
|
|
) TYPE=InnoDB;
|
|
|
|
CREATE TABLE `notes` (
|
|
`id` int(11) NOT NULL auto_increment,
|
|
`user_id` int(11) NOT NULL default '0',
|
|
`project_id` int(11) NOT NULL default '0',
|
|
`body` text,
|
|
`created_at` datetime default '0000-00-00 00:00:00',
|
|
`updated_at` datetime default '0000-00-00 00:00:00',
|
|
PRIMARY KEY (`id`)
|
|
) TYPE=InnoDB;
|
|
|
|
CREATE TABLE `projects` (
|
|
`id` int(11) NOT NULL auto_increment,
|
|
`name` varchar(255) NOT NULL default '',
|
|
`position` int(11) NOT NULL default '0',
|
|
`done` tinyint(1) default '0',
|
|
`user_id` int(11) NOT NULL default '0',
|
|
`description` text,
|
|
PRIMARY KEY (`id`)
|
|
) TYPE=InnoDB;
|
|
|
|
CREATE TABLE `schema_info` (
|
|
`version` int(11) default NULL
|
|
) TYPE=MyISAM;
|
|
|
|
CREATE TABLE `todos` (
|
|
`id` int(11) NOT NULL auto_increment,
|
|
`context_id` int(11) NOT NULL default '0',
|
|
`project_id` int(11) default NULL,
|
|
`description` varchar(255) NOT NULL default '',
|
|
`notes` text,
|
|
`done` tinyint(1) NOT NULL default '0',
|
|
`created_at` datetime default NULL,
|
|
`due` date default NULL,
|
|
`completed` datetime default NULL,
|
|
`user_id` int(11) NOT NULL default '0',
|
|
PRIMARY KEY (`id`)
|
|
) TYPE=InnoDB;
|
|
|
|
CREATE TABLE `users` (
|
|
`id` int(11) NOT NULL auto_increment,
|
|
`login` varchar(80) NOT NULL default '',
|
|
`password` varchar(40) NOT NULL default '',
|
|
`word` varchar(255) default NULL,
|
|
`is_admin` tinyint(1) NOT NULL default '0',
|
|
PRIMARY KEY (`id`)
|
|
) TYPE=InnoDB;
|
|
|