mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-31 13:15:17 +01:00
A placeholder page is also added for future configuration of users: [tracks_url]/user/index and [tracks_url]/user/admin. It doesn't do anything useful yet ;-).
I added the database changes as a migrate task, so running:
{{{
rake migrate
}}}
at the command line inside your tracks directory will automatically update your database (if you are using either MySQL or PostgreSQL.
Fixes #84.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@137 a4c988fc-2ded-0310-b66e-134b36920a42
75 lines
1.9 KiB
SQL
75 lines
1.9 KiB
SQL
-- SQLite dump
|
|
-- ------------------------------------------------------------
|
|
|
|
-- Dump of table contexts
|
|
-- ------------------------------------------------------------
|
|
|
|
CREATE TABLE 'contexts' (
|
|
'id' INTEGER PRIMARY KEY,
|
|
'name' varchar(255) NOT NULL default '',
|
|
'hide' tinyint(4) NOT NULL default '0',
|
|
'position' int NOT NULL,
|
|
'user_id' int NOT NULL default '1'
|
|
) ;
|
|
|
|
|
|
|
|
-- Dump of table projects
|
|
-- ------------------------------------------------------------
|
|
|
|
CREATE TABLE 'projects' (
|
|
'id' INTEGER PRIMARY KEY,
|
|
'name' varchar(255) NOT NULL default '',
|
|
'position' int NOT NULL,
|
|
'done' tinyint(4) NOT NULL default '0',
|
|
'description' varchar(255) default '',
|
|
'user_id' int NOT NULL default '1'
|
|
) ;
|
|
|
|
-- Dump of table schema_info
|
|
|
|
CREATE TABLE 'schema_info' (
|
|
'version' INTEGER default NULL
|
|
) ;
|
|
|
|
-- Dump of table todos
|
|
-- ------------------------------------------------------------
|
|
|
|
CREATE TABLE 'todos' (
|
|
'id' INTEGER PRIMARY KEY,
|
|
'context_id' int(11) NOT NULL default '0',
|
|
'description' varchar(100) NOT NULL default '',
|
|
'notes' text,
|
|
'done' tinyint(4) NOT NULL default '0',
|
|
'created_at' datetime NOT NULL default '0000-00-00 00:00:00',
|
|
'due' date default NULL,
|
|
'completed' datetime default NULL,
|
|
'project_id' int(11) default NULL,
|
|
'user_id' int NOT NULL default '1'
|
|
) ;
|
|
|
|
|
|
|
|
-- Dump of table users
|
|
-- ------------------------------------------------------------
|
|
|
|
CREATE TABLE 'users' (
|
|
'id' INTEGER PRIMARY KEY,
|
|
'login' varchar(80) default NULL,
|
|
'password' varchar(40) default NULL,
|
|
'word' varchar(255) default NULL,
|
|
'is_admin' tinyint(4) NOT NULL default '0'
|
|
) ;
|
|
|
|
-- Dump of table notes
|
|
-- ------------------------------------------------------------
|
|
|
|
CREATE TABLE 'notes' (
|
|
'id' INTEGER PRIMARY KEY,
|
|
'project_id' int(11) NOT NULL default '0',
|
|
'body' text,
|
|
'created_at' datetime NOT NULL default '0000-00-00 00:00:00',
|
|
'updated_at' datetime default '0000-00-00 00:00:00',
|
|
'user_id' int NOT NULL default '1'
|
|
) ;
|
|
|