Redmine/db/migrate
Jean-Philippe Lang b4013dc9f2 Removed the default 0 value for issues foreign keys.
It prevents useless "... where id=0" queries and ensures that *_id attributes default to nil.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11417 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-02-17 10:14:58 +00:00
..
001_setup.rb Fixed Redmine case. 2013-01-23 18:09:16 +00:00
002_issue_move.rb Replaces find(:first) calls in migrations. 2012-12-03 18:25:57 +00:00
003_issue_add_note.rb Replaces find(:first) calls in migrations. 2012-12-03 18:25:57 +00:00
004_export_pdf.rb Replaces find(:first) calls in migrations. 2012-12-03 18:25:57 +00:00
005_issue_start_date.rb
006_calendar_and_activity.rb Replaces find(:first) calls in migrations. 2012-12-03 18:25:57 +00:00
007_create_journals.rb Replaces find(:first) calls in migrations. 2012-12-03 18:25:57 +00:00
008_create_user_preferences.rb
009_add_hide_mail_pref.rb
010_create_comments.rb
011_add_news_comments_count.rb
012_add_comments_permissions.rb Replaces find(:first) calls in migrations. 2012-12-03 18:25:57 +00:00
013_create_queries.rb
014_add_queries_permissions.rb Replaces find(:first) calls in migrations. 2012-12-03 18:25:57 +00:00
015_create_repositories.rb
016_add_repositories_permissions.rb Replaces find(:first) calls in migrations. 2012-12-03 18:25:57 +00:00
017_create_settings.rb
018_set_doc_and_files_notifications.rb
019_add_issue_status_position.rb Replaces find(:all) calls. 2012-12-02 20:28:37 +00:00
020_add_role_position.rb Restores migration broken by r8182 and removes default scope on Role (#9800). 2011-12-14 22:24:20 +00:00
021_add_tracker_position.rb Replaces find(:all) calls. 2012-12-02 20:28:37 +00:00
022_serialize_possibles_values.rb Replaces find(:all) calls. 2012-12-02 20:28:37 +00:00
023_add_tracker_is_in_roadmap.rb
024_add_roadmap_permission.rb Replaces find(:first) calls in migrations. 2012-12-03 18:25:57 +00:00
025_add_search_permission.rb
026_add_repository_login_and_password.rb
027_create_wikis.rb remove trailing white-spaces from db/migrate/027_create_wikis.rb (#9510) 2011-11-06 07:54:24 +00:00
028_create_wiki_pages.rb remove trailing white-spaces from db/migrate/028_create_wiki_pages.rb (#9510) 2011-11-06 09:16:26 +00:00
029_create_wiki_contents.rb remove trailing white-spaces from db/migrate/029_create_wiki_contents.rb (#9510) 2011-11-07 00:13:49 +00:00
030_add_projects_feeds_permissions.rb
031_add_repository_root_url.rb
032_create_time_entries.rb
033_add_timelog_permissions.rb
034_create_changesets.rb
035_create_changes.rb
036_add_changeset_commit_date.rb
037_add_project_identifier.rb
038_add_custom_field_is_filter.rb
039_create_watchers.rb
040_create_changesets_issues.rb
041_rename_comment_to_comments.rb
042_create_issue_relations.rb
043_add_relations_permissions.rb
044_set_language_length_to_five.rb
045_create_boards.rb
046_create_messages.rb
047_add_boards_permissions.rb
048_allow_null_version_effective_date.rb
049_add_wiki_destroy_page_permission.rb
050_add_wiki_attachments_permissions.rb
051_add_project_status.rb
052_add_changes_revision.rb
053_add_changes_branch.rb
054_add_changesets_scmid.rb
055_add_repositories_type.rb remove trailing white-spaces from db/migrate/055_add_repositories_type.rb (#9510) 2011-11-07 00:13:26 +00:00
056_add_repositories_changes_permission.rb
057_add_versions_wiki_page_title.rb
058_add_issue_categories_assigned_to_id.rb
059_add_roles_assignable.rb
060_change_changesets_committer_limit.rb
061_add_roles_builtin.rb
062_insert_builtin_roles.rb Undefined #builtin= with Rails 3.1.3. 2012-02-25 11:48:29 +00:00
063_add_roles_permissions.rb
064_drop_permissions.rb
065_add_settings_updated_on.rb Replaces find(:all) calls. 2012-12-02 20:28:37 +00:00
066_add_custom_value_customized_index.rb
067_create_wiki_redirects.rb
068_create_enabled_modules.rb Replaces find(:all) calls. 2012-12-02 20:28:37 +00:00
069_add_issues_estimated_hours.rb
070_change_attachments_content_type_limit.rb
071_add_queries_column_names.rb
072_add_enumerations_position.rb Replaces find(:all) calls. 2012-12-02 20:28:37 +00:00
073_add_enumerations_is_default.rb
074_add_auth_sources_tls.rb
075_add_members_mail_notification.rb
076_allow_null_position.rb
077_remove_issue_statuses_html_color.rb
078_add_custom_fields_position.rb Replaces find(:all) calls. 2012-12-02 20:28:37 +00:00
079_add_user_preferences_time_zone.rb
080_add_users_type.rb
081_create_projects_trackers.rb Replaces find(:all) calls. 2012-12-02 20:28:37 +00:00
082_add_messages_locked.rb
083_add_messages_sticky.rb
084_change_auth_sources_account_limit.rb
085_add_role_tracker_old_status_index_to_workflows.rb
086_add_custom_fields_searchable.rb
087_change_projects_description_to_text.rb
088_add_custom_fields_default_value.rb
089_add_attachments_description.rb
090_change_versions_name_limit.rb
091_change_changesets_revision_to_string.rb Check if index exists before removing it (#12713). 2013-01-06 14:46:51 +00:00
092_change_changes_from_revision_to_string.rb
093_add_wiki_pages_protected.rb
094_change_projects_homepage_limit.rb
095_add_wiki_pages_parent_id.rb
096_add_commit_access_permission.rb Replaces find(:all) calls. 2012-12-02 20:28:37 +00:00
097_add_view_wiki_edits_permission.rb Replaces find(:all) calls. 2012-12-02 20:28:37 +00:00
098_set_topic_authors_as_watchers.rb
099_add_delete_wiki_pages_attachments_permission.rb Replaces find(:all) calls. 2012-12-02 20:28:37 +00:00
100_add_changesets_user_id.rb
101_populate_changesets_user_id.rb
102_add_custom_fields_editable.rb
103_set_custom_fields_editable.rb
104_add_projects_lft_and_rgt.rb
105_build_projects_tree.rb Use Project.rebuild_tree! instead of .rebuild! in migration. 2012-11-23 17:53:12 +00:00
106_remove_projects_projects_count.rb
107_add_open_id_authentication_tables.rb
108_add_identity_url_to_users.rb
20090214190337_add_watchers_user_id_type_index.rb
20090312172426_add_queries_sort_criteria.rb
20090312194159_add_projects_trackers_unique_index.rb Replaces find(:all) calls. 2012-12-02 20:28:37 +00:00
20090318181151_extend_settings_name.rb
20090323224724_add_type_to_enumerations.rb
20090401221305_update_enumerations_to_sti.rb
20090401231134_add_active_field_to_enumerations.rb
20090403001910_add_project_to_enumerations.rb
20090406161854_add_parent_id_to_enumerations.rb
20090425161243_add_queries_group_by.rb
20090503121501_create_member_roles.rb
20090503121505_populate_member_roles.rb Replaces find(:all) calls. 2012-12-02 20:28:37 +00:00
20090503121510_drop_members_role_id.rb
20090614091200_fix_messages_sticky_null.rb
20090704172350_populate_users_type.rb
20090704172355_create_groups_users.rb
20090704172358_add_member_roles_inherited_from.rb
20091010093521_fix_users_custom_values.rb
20091017212227_add_missing_indexes_to_workflows.rb
20091017212457_add_missing_indexes_to_custom_fields_projects.rb
20091017212644_add_missing_indexes_to_messages.rb
20091017212938_add_missing_indexes_to_repositories.rb
20091017213027_add_missing_indexes_to_comments.rb
20091017213113_add_missing_indexes_to_enumerations.rb
20091017213151_add_missing_indexes_to_wiki_pages.rb
20091017213228_add_missing_indexes_to_watchers.rb
20091017213257_add_missing_indexes_to_auth_sources.rb
20091017213332_add_missing_indexes_to_documents.rb
20091017213444_add_missing_indexes_to_tokens.rb
20091017213536_add_missing_indexes_to_changesets.rb
20091017213642_add_missing_indexes_to_issue_categories.rb
20091017213716_add_missing_indexes_to_member_roles.rb
20091017213757_add_missing_indexes_to_boards.rb
20091017213835_add_missing_indexes_to_user_preferences.rb
20091017213910_add_missing_indexes_to_issues.rb
20091017214015_add_missing_indexes_to_members.rb
20091017214107_add_missing_indexes_to_custom_fields.rb
20091017214136_add_missing_indexes_to_queries.rb
20091017214236_add_missing_indexes_to_time_entries.rb
20091017214308_add_missing_indexes_to_news.rb
20091017214336_add_missing_indexes_to_users.rb
20091017214406_add_missing_indexes_to_attachments.rb
20091017214440_add_missing_indexes_to_wiki_contents.rb
20091017214519_add_missing_indexes_to_custom_values.rb
20091017214611_add_missing_indexes_to_journals.rb
20091017214644_add_missing_indexes_to_issue_relations.rb
20091017214720_add_missing_indexes_to_wiki_redirects.rb
20091017214750_add_missing_indexes_to_custom_fields_trackers.rb
20091025163651_add_activity_indexes.rb
20091108092559_add_versions_status.rb
20091114105931_add_view_issues_permission.rb Replaces find(:all) calls. 2012-12-02 20:28:37 +00:00
20091123212029_add_default_done_ratio_to_issue_status.rb
20091205124427_add_versions_sharing.rb
20091220183509_add_lft_and_rgt_indexes_to_projects.rb
20091220183727_add_index_to_settings_name.rb
20091220184736_add_indexes_to_issue_status.rb
20091225164732_remove_enumerations_opt.rb
20091227112908_change_wiki_contents_text_limit.rb
20100129193402_change_users_mail_notification_to_string.rb
20100129193813_update_mail_notification_values.rb
20100221100219_add_index_on_changesets_scmid.rb
20100313132032_add_issues_nested_sets_columns.rb remove trailing white-spaces from db/migrate/20100313132032_add_issues_nested_sets_columns.rb (#9510) 2011-11-07 00:13:01 +00:00
20100313171051_add_index_on_issues_nested_set.rb
20100705164950_change_changes_path_length_limit.rb remove trailing white-spaces from db/migrate/20100705164950_change_changes_path_length_limit.rb (#9510) 2011-11-09 02:46:23 +00:00
20100819172912_enable_calendar_and_gantt_modules_where_appropriate.rb Replaces find(:all) calls. 2012-12-02 20:28:37 +00:00
20101104182107_add_unique_index_on_members.rb remove trailing white-spaces from db/migrate/20101104182107_add_unique_index_on_members.rb (#9510) 2011-11-09 08:47:57 +00:00
20101107130441_add_custom_fields_visible.rb
20101114115114_change_projects_name_limit.rb
20101114115359_change_projects_identifier_limit.rb
20110220160626_add_workflows_assignee_and_author.rb Fixed migration broken by r9977. 2012-07-19 17:34:37 +00:00
20110223180944_add_users_salt.rb
20110223180953_salt_user_passwords.rb
20110224000000_add_repositories_path_encoding.rb
20110226120112_change_repositories_password_limit.rb
20110226120132_change_auth_sources_account_password_limit.rb
20110227125750_change_journal_details_values_to_text.rb
20110228000000_add_repositories_log_encoding.rb
20110228000100_copy_repositories_log_encoding.rb Typo. 2011-12-03 13:42:58 +00:00
20110401192910_add_index_to_users_type.rb
20110408103312_add_roles_issues_visibility.rb
20110412065600_add_issues_is_private.rb
20110511000000_add_repositories_extra_info.rb
20110902000000_create_changeset_parents.rb scm: db: model: add parent/child relation for changesets (#5501) 2011-11-03 08:01:41 +00:00
20111201201315_add_unique_index_to_issue_relations.rb set svn:eol-style native db/migrate/*.rb 2012-03-05 03:55:03 +00:00
20120115143024_add_repositories_identifier.rb Adds support for multiple repositories per project (#779). 2012-01-15 18:19:19 +00:00
20120115143100_add_repositories_is_default.rb Adds support for multiple repositories per project (#779). 2012-01-15 18:19:19 +00:00
20120115143126_set_default_repositories.rb Adds support for multiple repositories per project (#779). 2012-01-15 18:19:19 +00:00
20120127174243_add_custom_fields_multiple.rb Adds support for multiselect custom fields (#1189). 2012-01-29 20:51:48 +00:00
20120205111326_change_users_login_limit.rb Increase username length limit from 30 to 60 (#2719). 2012-02-05 11:50:53 +00:00
20120223110929_change_attachments_container_defaults.rb Fixed migration broken with Rails 3.1.3 (#10320). 2012-02-25 11:46:19 +00:00
20120301153455_add_auth_sources_filter.rb Adds an optional LDAP filter (#1060). 2012-03-01 16:26:10 +00:00
20120422150750_change_repositories_to_full_sti.rb Merged rails-3.2 branch. 2012-04-25 17:17:49 +00:00
20120705074331_add_trackers_fields_bits.rb Ability to disable standard fields on a per tracker basis (#1091). 2012-07-05 12:20:07 +00:00
20120707064544_add_auth_sources_timeout.rb Adds a configurable timeout for LDAP authentication (#8978). 2012-07-07 09:36:04 +00:00
20120714122000_add_workflows_type.rb Workflow enhancement: editable and required fields configurable by role, tracker and status (#703, #3521). 2012-07-15 14:12:17 +00:00
20120714122100_update_workflows_to_sti.rb Workflow enhancement: editable and required fields configurable by role, tracker and status (#703, #3521). 2012-07-15 14:12:17 +00:00
20120714122200_add_workflows_rule_fields.rb Workflow enhancement: editable and required fields configurable by role, tracker and status (#703, #3521). 2012-07-15 14:12:17 +00:00
20120731164049_add_boards_parent_id.rb Support for subforums (#3831). 2012-07-31 17:17:52 +00:00
20120930112914_add_journals_private_notes.rb Private issue notes (#1554). 2012-10-03 21:36:19 +00:00
20121026002032_add_enumerations_position_name.rb Adds a textual css class for issue priorities (#12216). 2012-10-26 01:25:23 +00:00
20121026003537_populate_enumerations_position_name.rb Adds a textual css class for issue priorities (#12216). 2012-10-26 01:25:23 +00:00
20121209123234_add_queries_type.rb Adds STI to Query model. Issue queries are now IssueQuery instances. 2012-12-09 14:10:49 +00:00
20121209123358_update_queries_to_sti.rb Adds STI to Query model. Issue queries are now IssueQuery instances. 2012-12-09 14:10:49 +00:00
20121213084931_add_attachments_disk_directory.rb Store attachments in subdirectories (#5298). 2012-12-13 12:07:19 +00:00
20130110122628_split_documents_permissions.rb Split "Manage documents" permission into create, edit and delete permissions (#12401). 2013-01-20 11:38:20 +00:00
20130201184705_add_unique_index_on_tokens_value.rb Add unique index on tokens.value. 2013-02-01 20:04:38 +00:00
20130202090625_add_projects_inherit_members.rb Optionaly inherit members from parent project (#5605). 2013-02-02 12:50:45 +00:00
20130207175206_add_unique_index_on_custom_fields_trackers.rb Add unique index on custom_fields_trackers (#13059). 2013-02-07 18:20:59 +00:00
20130207181455_add_unique_index_on_custom_fields_projects.rb Add unique index on custom_fields_projects. 2013-02-07 18:21:18 +00:00
20130215073721_change_users_lastname_length_to_255.rb Raised group name maximum length to 255 characters (#13174). 2013-02-15 07:48:37 +00:00
20130215111127_add_issues_closed_on.rb Adds closed_on column that stores the time of the last closing (#824). 2013-02-16 09:38:01 +00:00
20130215111141_populate_issues_closed_on.rb Adds closed_on column that stores the time of the last closing (#824). 2013-02-16 09:38:01 +00:00
20130217094251_remove_issues_default_fk_values.rb Removed the default 0 value for issues foreign keys. 2013-02-17 10:14:58 +00:00