Commit graph

56 commits

Author SHA1 Message Date
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
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
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
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
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
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
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
Reinier Balt
af711c2568 also update sql in migration for mysql4 users 2009-02-08 22:08:49 +01:00
mike
6bc68bcf6c Added migration to fix incorrectly hidden todos
Signed-off-by: Reinier Balt <lrbalt@gmail.com>
2009-01-20 04:20:08 +08:00
Reinier Balt
f79c28231b remove unused and unneccesary user_id from taggings table.
this way we can stay closer to the defaults of has_many_polymorphs thus making upgrading easier
2009-01-08 10:18:03 +01:00
Eric Allen
611a53e668 No point in changing the name of the OpenID identity column in users table. Use the existing one. 2008-12-08 18:51:33 -05:00
Eric Allen
930999829b Re-write OpenID code to use new authentication plugin. Tested to work! 2008-12-08 00:52:57 -05:00
Reinier Balt
764e41685b fix migration to fill the updated_at column. The rss feeds need a filled column. Fixes #794 2008-11-26 10:53:00 +01:00
Reinier Balt
49f9f33ac0 add updated_at column to todos table
This timestamp was missing. All other tables with timestamps have update_at. Could use this in statistics
2008-11-21 13:36:10 +01:00
Eric Allen
a9a02896a0 Another shot at fixing migration 42. Actually tested to work. 2008-10-09 10:14:26 -04:00
Eric Allen
b36ed96813 Wow I broke the migration. Oops. 2008-10-08 23:47:59 -04:00
Eric Allen
24c2b57b4a Make migration 42 more resilient: don't freak out when user has no prefs object 2008-10-08 11:26:06 -04:00
Eric Allen
ba9a9370cc Merge branch 'timezones' of git://github.com/epall/tracks into master.
Re-wrote all Date-related code to use Datetimes, created a migration to get rid of all date columns in the database, and got rid of Time.now calls that were not time zone-aware. Lots of time zone goodness!
2008-09-21 18:24:12 -07:00
Eric Allen
a5f77976ad Bump migration to avoid conflict when merging to trunk 2008-09-21 18:21:35 -07:00
Eric Allen
f52a2eafa8 A few fixes after more thorough review. 2008-09-21 18:13:21 -07:00
Eric Allen
778427405a Changed all Date objects to Datetimes and migrated everything appropriately. Tests & specs pass, but this still needs a thorough review. 2008-09-13 13:33:48 -07:00