Commit graph

79 commits

Author SHA1 Message Date
Dan Rice
777dc10d49 Update schema.rb with RemoveProjectHiddenStateFromTodos migration 2016-05-15 20:29:25 -04:00
Carsten Otto
6805cb801b Add migration script to remove 'project_hidden' 2016-04-16 09:28:11 +02:00
Jan-Yves Ruzicka
ccf13418f4 Extract rendering to helper method. Shift filename sanitization to controller. 2016-02-02 11:08:12 +00:00
Reinier Balt
2bd68fecb7 Create attachment model and hook it up to todo
An attachment has write permissions on group so that managing
attachments work from different users in same group, i.e. user apache
and user mail.
2015-08-05 16:05:19 +02:00
Carsten Otto
d480569629 occurence -> occurrence 2015-02-10 15:49:13 +01:00
Dan Rice
2820c423c7 Merge pull request #216 from TracksApp/update-db-schema
Update db/schema after running db:migrate from scratch
2014-06-10 15:49:13 -04:00
Dan Rice
d48d49790a Remove sample SQLite databases
They're out of date, SQLite isn't the default database driver, and
they're not mentioned in the documentation.
2014-05-05 22:50:25 -04:00
Matt Rogers
e15d3f9e9b Update db/schema after running db:migrate from scratch 2014-03-22 08:53:14 -05:00
Reinier Balt
b543f530e8 add recent schema.rb 2014-03-04 17:08:22 +01:00
Reinier Balt
008d3d4c3d fix mysql error on old migration. prevented ci from running 2014-01-02 19:41:02 +01:00
Reinier Balt
eaa66be698 fix deprecation warnings 2013-09-13 16:44:59 +02:00
Tim Madden
45a4210587 Update db/schema with new syntax 2013-07-24 10:14:46 -05:00
Dan Rice
9cdea2c51f Check schema.rb into source control
This practice is "strongly recommended."
http://guides.rubyonrails.org/migrations.html#schema-dumps-and-source-control
2013-03-04 12:42:59 -05:00
Dan Rice
257b969aff Fix code formatting in AddStateToContext migration 2013-03-02 03:19:40 -05:00
Dan Rice
560f2ff538 Give the Context.state column a default value of 'active'
SQLite does not permit a NOT NULL column to have default value NULL.
2013-03-02 03:02:05 -05:00
Reinier Balt
29f28db810 fix migration for rollback 2013-03-01 16:48:52 +01:00
Reinier Balt
99eed9f638 add state machine to context including a closed state 2013-03-01 16:22:29 +01:00
Reinier Balt
bd656ee1c7 fix #1350 by removing admin_email from preferences model and add it as a site option in
site.yml.tmpl. This one needs running migrations
2012-12-23 21:03:37 +01:00
Dan Rice
c1f1fcb35b Use say() instead of puts() in migrations 2012-12-04 19:04:21 -05:00
Dan Rice
1de6a0c9dc Reload columns before rendering notes during migration
Fixes #1351
2012-12-04 18:44:58 -05:00
Reinier Balt
702c89e754 add tolk to Tracks for easy management of translations. Limited to development
environment only. Need migration.


Signed-off-by: Reinier Balt <lrbalt@gmail.com>
2012-07-18 14:58:24 +02:00
Michael Witrant
0572a89a4d removed support for Rails < 3.0 2012-07-08 21:10:54 +02:00
Michael Witrant
6fd369b91e fixed AddRenderedNotes migration on Rails > 3.1 2012-07-07 10:27:59 +02:00
Matt Rogers
598891c1d3 Don't use dynamic finders in this migration.
For whatever reason, the dynamic finders aren't available in this
migration and so the migration fails. Converting to find(:all,
:conditions => {...}) prevents this from not failing.
2012-05-13 21:03:38 -05:00
Matt Rogers
a97384f318 Workaround a problem with SQLite 3 and long index names
Index names can only be a certain length. The remove_user_from_taggings
migration, when run on sqlite3, creates an index name that violates the
maximum length check. Fix it by removing and then recreating the indexes
as part of the migration.
2012-05-12 22:01:31 -05:00
Matt Rogers
8979d2cf9f remove the double .rb extension
one .rb is quite enough. ;)
2012-05-04 22:21:15 -05:00
Reinier Balt
a83c8b3f92 initial upgrade to rails 3.2.3 2012-04-30 13:56:33 +02:00
Reinier Balt
6e15c38efe update docs and default database from changes in 2.1 tree 2012-04-19 00:35:46 +02:00
Reinier Balt
bb8b5a4c72 store rendered notes of todos in database to avoid costly rendering when you load a page 2012-04-12 11:34:08 +02:00
Reinier Balt
98bb405f69 fix #1274 by adding indeces for dependency and project tables 2012-04-09 12:58:29 +02:00
Reinier Balt
3a07010338 first cleanups of review feature 2011-09-28 13:58:46 +02:00
sfischme
33befa88b3 added preference settings 2011-09-15 21:06:50 -04:00
sfischme
77b6c931ca added separate database field for reviews 2011-09-15 20:52:24 -04:00
Jan Stępień
97431324db Password-rehashing "down" for migration 20110727073510
Reinier Balt wrote:
> One problem I see is when people want to downgrade. You chop the
> password field back to 40 chars, but it will cause all users incapable
> of logging in. Perhaps we can put a default password in the password on
> migration.down? like sha1('secret123') so we leave Tracks operable on
> downgrade?

https://github.com/bsag/tracks-old/pull/26#issuecomment-2001500
2011-09-07 16:06:03 +02:00
Jan Stępień
42437eadfa Changed the length of users.crypted_password to 60 2011-09-07 16:06:01 +02:00
Reinier Balt
6e97541ab3 make sure toggle_check and deleting of todos, recurring_todos and projects work in the new done views 2011-07-09 17:21:36 +02:00
Reinier Balt
c2be07c6c3 update migration to make the default nil instead of empty string to maintain backward compatibility
running 2.0 (old aasm) tests on migrated db gives a lot of errors because of the empty string
2011-06-10 23:17:23 +02:00
Stefan Richter
1cf5967eb5 adding missing table 2011-06-10 23:17:21 +02:00
Stefan Richter
fdbd2a6391 fixing issue with wrong initial value of state column 2011-06-10 23:17:20 +02:00
Reinier Balt
79673bc1ab upgrade example databases 2011-02-26 21:15:21 +01:00
Marcus Ilgner
338d4bb5a6 Added locale selection to preferences
Mostly completed transition to full i18n
Incorporated german translations by Ulf Klose <ulf.klose@gmail.com>
2011-01-16 18:14:07 +01:00
Reinier Balt
0198a2fa13 fix #936 by adding index on state for todos. Needs migration of database. 2010-05-02 18:25:25 +02:00
Eric Allen
e4394761c5 Blank DB with pre-defined contexts for easier start
Fixes #968
2010-04-02 09:46:20 -04:00
Eric Allen
31624d5f9c Blanking out the "blank" DB 2009-12-02 22:22:31 -05:00
Eric Allen
101df3fb6b Simple dependency handling working on project page.
The database contains actions with dependencies.
Please rename to tracks-17-blank.db or update database path accordingly.

Conflicts:

	app/views/todos/toggle_check.js.rjs
2009-11-04 22:32:44 -05:00
Eric Allen
cc033e2165 Conflicts:
db/tracks-17-blank.db
2009-11-04 22:31:17 -05:00
Henrik Bohre
9871755140 #300: Added migration for dependencies support 2009-11-04 22:30:20 -05:00
Reinier Balt
e87bd5b19a update sample databases to latest migration and vacuum them 2009-08-05 21:03:10 +02:00
piglop
4e1e18da0f fixed #781:
* added a "show always" radio to the recurring todo forms
* added a show_always flag to recurring todos
* created a migration to convert existing recurring todos where show_from_delta==0
* recurring todos where show_from_delta is 0 are now shown the same day they're due

Signed-off-by: Reinier Balt <lrbalt@gmail.com>
2009-06-03 01:36:20 +08:00
Eric Allen
42bea2490b Fix #592 be able to set default tags for a project. Default tags can now be specified when creating or editing a project, and they will be applied to any new todos created in that project. 2009-04-15 21:54:31 -04:00