Redmine/db/migrate
Eric Davis 62e58f26b0 Changed Enumerations to use a Single Table Inheritance
* Added migrations to change Enumerations to an STI relationship
* Added TimeEntryActivity model (STI)
* Added DocumentCategory model (STI)
* Added IssuePriority model (STI)
* Added Enumeration#get_subclasses to get a list of the subclasses of Enumeration
* Changed Enumeration to use the STI type field instead of the opt field
* Changed Enumeration#opt to return the old opt values but with a deprecation warning.
* Removed Enumeration::OPTIONS
* Removed the dynamic named_scopes in favor of specific named_scopes.  Kept for
  compatibility reasons.
* Added Enumeration#default so each subclass can easily find it's default record.
* Fixed Enumeration#default to use the STI scoping with a fake default scope for finding Enumeration's default.
* Added a 'all' named scope for getting all records in order by position.
* Added Deprecation warnings to the old named_scopes in Enumerations.
* Moved various methods off of Enumeration and onto the concrete classes
* Changed the EnumerationsController to use types
* Updated the Enumeration list template
* Added has_many relationships to the Enumeration STI classes.
* Fixes for tests.

  #3007

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2777 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-05-30 23:30:36 +00:00
..
001_setup.rb Use example.net as domain in default configuration (#1762). 2008-08-25 16:35:20 +00:00
002_issue_move.rb Merged 0.6 branch into trunk. 2007-08-29 16:52:35 +00:00
003_issue_add_note.rb Merged 0.6 branch into trunk. 2007-08-29 16:52:35 +00:00
004_export_pdf.rb Merged 0.6 branch into trunk. 2007-08-29 16:52:35 +00:00
005_issue_start_date.rb trunk moved from /trunk/redmine to /trunk 2006-12-05 20:45:04 +00:00
006_calendar_and_activity.rb Merged 0.6 branch into trunk. 2007-08-29 16:52:35 +00:00
007_create_journals.rb Merged 0.6 branch into trunk. 2007-08-29 16:52:35 +00:00
008_create_user_preferences.rb trunk moved from /trunk/redmine to /trunk 2006-12-05 20:45:04 +00:00
009_add_hide_mail_pref.rb trunk moved from /trunk/redmine to /trunk 2006-12-05 20:45:04 +00:00
010_create_comments.rb Fixed: 10342 Creation of Schema in Oracle 2007-04-25 15:06:20 +00:00
011_add_news_comments_count.rb added model Comment. 2006-12-10 18:35:48 +00:00
012_add_comments_permissions.rb Merged 0.6 branch into trunk. 2007-08-29 16:52:35 +00:00
013_create_queries.rb "queries" branch merged 2006-12-16 13:37:32 +00:00
014_add_queries_permissions.rb Merged 0.6 branch into trunk. 2007-08-29 16:52:35 +00:00
015_create_repositories.rb svn browser merged in trunk 2006-12-24 13:38:45 +00:00
016_add_repositories_permissions.rb Merged 0.6 branch into trunk. 2007-08-29 16:52:35 +00:00
017_create_settings.rb settings are now stored in the database (config_custom.rb no more used) and editable through the application in: Admin -> Settings 2007-01-21 11:50:22 +00:00
018_set_doc_and_files_notifications.rb Merged 0.6 branch into trunk. 2007-08-29 16:52:35 +00:00
019_add_issue_status_position.rb Removed 'not null' constraint on position fields. 2007-10-22 21:07:13 +00:00
020_add_role_position.rb Removed 'not null' constraint on position fields. 2007-10-22 21:07:13 +00:00
021_add_tracker_position.rb Removed 'not null' constraint on position fields. 2007-10-22 21:07:13 +00:00
022_serialize_possibles_values.rb custom_field.possible_values is now serialized (no longer pipe separated) 2007-02-03 12:57:33 +00:00
023_add_tracker_is_in_roadmap.rb added roadmap view 2007-02-04 09:18:40 +00:00
024_add_roadmap_permission.rb Merged 0.6 branch into trunk. 2007-08-29 16:52:35 +00:00
025_add_search_permission.rb Merged 0.6 branch into trunk. 2007-08-29 16:52:35 +00:00
026_add_repository_login_and_password.rb feature #9137 Password-protected SVN repositories 2007-03-09 18:03:31 +00:00
027_create_wikis.rb wiki branch merged into trunk 2007-03-10 15:09:49 +00:00
028_create_wiki_pages.rb wiki branch merged into trunk 2007-03-10 15:09:49 +00:00
029_create_wiki_contents.rb Fixed: 10342 Creation of Schema in Oracle 2007-04-25 15:06:20 +00:00
030_add_projects_feeds_permissions.rb Merged 0.6 branch into trunk. 2007-08-29 16:52:35 +00:00
031_add_repository_root_url.rb fixed problems when svn path doesn't point to the root directory of the repository. 2007-03-18 15:48:05 +00:00
032_create_time_entries.rb Fixed: 10342 Creation of Schema in Oracle 2007-04-25 15:06:20 +00:00
033_add_timelog_permissions.rb Merged 0.6 branch into trunk. 2007-08-29 16:52:35 +00:00
034_create_changesets.rb Fixed: 10342 Creation of Schema in Oracle 2007-04-25 15:06:20 +00:00
035_create_changes.rb SVN commits are now stored in the database, and added to the activity view and the search engine. 2007-03-25 12:12:15 +00:00
036_add_changeset_commit_date.rb fixed #9542 sqlite3 exception in db:migrate on AddChangesetCommitDate 2007-03-26 16:41:54 +00:00
037_add_project_identifier.rb Migration to add identifier attribute on project. 2007-04-02 06:29:09 +00:00
038_add_custom_field_is_filter.rb Custom fields for issues can now be used as filters on issue list. 2007-04-17 10:53:20 +00:00
039_create_watchers.rb Added create_watchers migration 2007-04-21 12:09:07 +00:00
040_create_changesets_issues.rb Commit messages are now scanned for referenced or fixed issue IDs. 2007-04-24 13:57:27 +00:00
041_rename_comment_to_comments.rb Updated migration 41 to support table name prefix/sufix. 2007-04-25 16:48:01 +00:00
042_create_issue_relations.rb Issue relations first commit (not thoroughly tested). 4 kinds of relation are available: 2007-05-05 13:22:27 +00:00
043_add_relations_permissions.rb Merged 0.6 branch into trunk. 2007-08-29 16:52:35 +00:00
044_set_language_length_to_five.rb Changed the length of 'language' column in users table from 2 to 5, to allow long language codes like pt-br. 2007-05-08 09:26:57 +00:00
045_create_boards.rb Removed 'not null' constraint on position fields. 2007-10-22 21:07:13 +00:00
046_create_messages.rb Per project forums added. 2007-05-13 17:09:56 +00:00
047_add_boards_permissions.rb Merged 0.6 branch into trunk. 2007-08-29 16:52:35 +00:00
048_allow_null_version_effective_date.rb Fixed: not null constraints not removed with Postgresql. 2008-02-12 21:11:16 +00:00
049_add_wiki_destroy_page_permission.rb Merged 0.6 branch into trunk. 2007-08-29 16:52:35 +00:00
050_add_wiki_attachments_permissions.rb Merged 0.6 branch into trunk. 2007-08-29 16:52:35 +00:00
051_add_project_status.rb Added the ability to archive projects: 2007-05-27 17:42:04 +00:00
052_add_changes_revision.rb Added basic support for CVS and Mercurial SCMs. 2007-06-12 20:12:05 +00:00
053_add_changes_branch.rb Added basic support for CVS and Mercurial SCMs. 2007-06-12 20:12:05 +00:00
054_add_changesets_scmid.rb Added basic support for CVS and Mercurial SCMs. 2007-06-12 20:12:05 +00:00
055_add_repositories_type.rb Added basic support for CVS and Mercurial SCMs. 2007-06-12 20:12:05 +00:00
056_add_repositories_changes_permission.rb Merged 0.6 branch into trunk. 2007-08-29 16:52:35 +00:00
057_add_versions_wiki_page_title.rb A wiki page can now be attached to each version. 2007-06-14 18:26:27 +00:00
058_add_issue_categories_assigned_to_id.rb Each category can now be associated to a user, so that new issues in that category are automatically assigned to that user. 2007-06-29 17:21:37 +00:00
059_add_roles_assignable.rb Added a 'Assignable' boolean on Role model. 2007-08-16 17:47:41 +00:00
060_change_changesets_committer_limit.rb Fixes migrations that change string limits for sqlite. 2008-03-09 18:25:37 +00:00
061_add_roles_builtin.rb Merged 0.6 branch into trunk. 2007-08-29 16:52:35 +00:00
062_insert_builtin_roles.rb Merged 0.6 branch into trunk. 2007-08-29 16:52:35 +00:00
063_add_roles_permissions.rb Merged 0.6 branch into trunk. 2007-08-29 16:52:35 +00:00
064_drop_permissions.rb Merged 0.6 branch into trunk. 2007-08-29 16:52:35 +00:00
065_add_settings_updated_on.rb Added cache for application settings (Setting model). 2007-08-31 17:45:32 +00:00
066_add_custom_value_customized_index.rb Added an index on custom_values table (customized_type + customized_id columns) to speed up issue queries that use custom field filters. 2007-09-04 22:07:44 +00:00
067_create_wiki_redirects.rb Added the ability to rename wiki pages (specific permission required). 2007-09-09 17:05:38 +00:00
068_create_enabled_modules.rb Added project module concept. 2007-09-14 11:34:08 +00:00
069_add_issues_estimated_hours.rb Added 'Estimated hours' attribute on issues. 2007-09-15 14:54:15 +00:00
070_change_attachments_content_type_limit.rb Fixes migrations that change string limits for sqlite. 2008-03-09 18:25:37 +00:00
071_add_queries_column_names.rb Added the ability to customize columns of a saved query. 2007-10-01 08:44:17 +00:00
072_add_enumerations_position.rb Merged Rails 2.1 compatibility branch. 2008-07-04 17:58:14 +00:00
073_add_enumerations_is_default.rb Added default value for enumerations. 2007-10-05 17:44:15 +00:00
074_add_auth_sources_tls.rb Added LDAPS support migration and fixed connection test flash messages. 2007-10-16 19:19:10 +00:00
075_add_members_mail_notification.rb More flexible mail notifications settings at user level. A user has now 3 options: 2007-10-20 12:47:05 +00:00
076_allow_null_position.rb Fixed: not null constraints not removed with Postgresql. 2008-02-12 21:11:16 +00:00
077_remove_issue_statuses_html_color.rb Removed IssueStatus html_color attribute. 2007-11-04 11:40:17 +00:00
078_add_custom_fields_position.rb Merged Rails 2.1 compatibility branch. 2008-07-04 17:58:14 +00:00
079_add_user_preferences_time_zone.rb * Added time zone support: users can select their time zone on their account view. 2007-11-19 22:28:43 +00:00
080_add_users_type.rb Anonymous users can now be allowed to create, edit, comment issues, comment news and post messages in the forums. 2007-11-20 15:40:16 +00:00
081_create_projects_trackers.rb Added per-project tracker selection. Trackers can be selected on project settings. 2007-11-20 20:29:03 +00:00
082_add_messages_locked.rb Forums enhancements: 2007-11-24 12:25:07 +00:00
083_add_messages_sticky.rb Forums enhancements: 2007-11-24 12:25:07 +00:00
084_change_auth_sources_account_limit.rb Fixes migrations that change string limits for sqlite. 2008-03-09 18:25:37 +00:00
085_add_role_tracker_old_status_index_to_workflows.rb Fixed error on migration 85 with Oracle (index name can not be more than 30 characters long). 2008-01-15 20:40:59 +00:00
086_add_custom_fields_searchable.rb Search engine: issue custom fields can now be searched. 2007-12-14 18:54:55 +00:00
087_change_projects_description_to_text.rb Fixes migration 87 error when running MySQL with STRICT_TRANS_TABLES on (#771). 2008-03-05 09:16:19 +00:00
088_add_custom_fields_default_value.rb Missing migration for r1090. 2008-01-20 23:38:55 +00:00
089_add_attachments_description.rb Adds an optional description to attachments. 2008-02-29 19:46:58 +00:00
090_change_versions_name_limit.rb Allow longer version names (#711, closes #712). 2008-03-09 15:36:47 +00:00
091_change_changesets_revision_to_string.rb Merged Git support branch (r1200 to r1226). 2008-03-12 20:28:49 +00:00
092_change_changes_from_revision_to_string.rb Merged Git support branch (r1200 to r1226). 2008-03-12 20:28:49 +00:00
093_add_wiki_pages_protected.rb Wiki page protection (#851, patch #1146 by Mateo Murphy with slight changes). 2008-05-04 15:05:38 +00:00
094_change_projects_homepage_limit.rb Change projects homepage limit to 255 chars (#663, #1095). 2008-05-25 13:37:29 +00:00
095_add_wiki_pages_parent_id.rb Wiki page hierarchy (#528). Parent page can be assigned on Rename screen. 2008-07-26 11:46:24 +00:00
096_add_commit_access_permission.rb Merged nbc branch @ r1812 (commit access permission and reposman improvements). 2008-09-13 16:31:11 +00:00
097_add_view_wiki_edits_permission.rb Typo in migration 97 name (#1929). 2008-09-21 20:38:36 +00:00
098_set_topic_authors_as_watchers.rb Fixed: migration 98 breaks when using table name prefix. 2009-02-08 17:24:39 +00:00
099_add_delete_wiki_pages_attachments_permission.rb Adds 'Delete wiki pages attachments' permission. 2008-10-18 10:07:49 +00:00
100_add_changesets_user_id.rb Maps repository users to Redmine users (#1383). 2008-11-10 18:59:06 +00:00
101_populate_changesets_user_id.rb Maps repository users to Redmine users (#1383). 2008-11-10 18:59:06 +00:00
102_add_custom_fields_editable.rb User custom fields can now be set as editable so that users can edit them on 'My account'. 2009-01-17 11:18:04 +00:00
103_set_custom_fields_editable.rb Fixes 103_set_custom_fields_editable migration from r2276 (#2526). 2009-01-18 10:54:08 +00:00
104_add_projects_lft_and_rgt.rb Merged nested projects branch. Removes limit on subproject nesting (#594). 2009-01-24 11:31:15 +00:00
105_build_projects_tree.rb Merged nested projects branch. Removes limit on subproject nesting (#594). 2009-01-24 11:31:15 +00:00
106_remove_projects_projects_count.rb Removes unused projects_count column from projects table. 2009-01-24 11:48:38 +00:00
107_add_open_id_authentication_tables.rb Added OpenID tables. #699 2009-02-11 19:06:50 +00:00
108_add_identity_url_to_users.rb Added identity_url to User. #699 2009-02-11 19:06:55 +00:00
20090214190337_add_watchers_user_id_type_index.rb Adds an index on watchers table to speed up watched issue filtering. 2009-02-14 19:06:44 +00:00
20090312172426_add_queries_sort_criteria.rb Ability to save "sort order" in custom queries (#2899). 2009-03-12 18:06:54 +00:00
20090312194159_add_projects_trackers_unique_index.rb Adds a unique index on projects_trackers table (#2882). 2009-03-12 19:49:39 +00:00
20090318181151_extend_settings_name.rb Extend the settings.name column so it can fit longer plugin names. 2009-03-19 00:01:24 +00:00
20090323224724_add_type_to_enumerations.rb Changed Enumerations to use a Single Table Inheritance 2009-05-30 23:30:36 +00:00
20090401221305_update_enumerations_to_sti.rb Changed Enumerations to use a Single Table Inheritance 2009-05-30 23:30:36 +00:00
20090425161243_add_queries_group_by.rb Ticket grouping (#2679). 2009-04-26 13:09:14 +00:00
20090503121501_create_member_roles.rb Allows multiple roles on the same project (#706). Prerequisite for user groups feature. 2009-05-10 10:54:31 +00:00
20090503121505_populate_member_roles.rb Clear member_roles table before populating it. 2009-05-10 11:18:09 +00:00
20090503121510_drop_members_role_id.rb Allows multiple roles on the same project (#706). Prerequisite for user groups feature. 2009-05-10 10:54:31 +00:00