git-svn-id: http://svn.redmine.org/redmine/trunk@17997 e93f8b46-1217-0410-a6f0-8f06a7374b81tags/4.1.0
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
source 'https://rubygems.org' | |||
gem "bundler", ">= 1.5.0" |
@@ -1,6 +1,4 @@ | |||
#!/usr/bin/env rake | |||
# frozen_string_literal: false | |||
# Add your own tasks in files placed in lib/tasks ending in .rake, | |||
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. | |||
@@ -1,5 +1,4 @@ | |||
#!/usr/bin/env ruby | |||
# frozen_string_literal: false | |||
ENV["RAILS_ENV"] ||= "production" | |||
require File.expand_path(File.dirname(__FILE__) + "/../config/environment") |
@@ -1,5 +1,4 @@ | |||
#!/usr/bin/env ruby | |||
# frozen_string_literal: false | |||
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) | |||
load Gem.bin_path('bundler', 'bundle') |
@@ -1,6 +1,4 @@ | |||
#!/usr/bin/env ruby | |||
# frozen_string_literal: false | |||
require 'optparse' | |||
require 'ostruct' | |||
require 'date' |
@@ -1,6 +1,4 @@ | |||
#!/usr/bin/env ruby | |||
# frozen_string_literal: false | |||
APP_PATH = File.expand_path('../../config/application', __FILE__) | |||
require_relative '../config/boot' | |||
require 'rails/commands' |
@@ -1,6 +1,4 @@ | |||
#!/usr/bin/env ruby | |||
# frozen_string_literal: false | |||
require_relative '../config/boot' | |||
require 'rake' | |||
Rake.application.run |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
# This file is used by Rack-based servers to start the application. | |||
require ::File.expand_path('../config/environment', __FILE__) |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
# Redmine - project management software | |||
# Copyright (C) 2006 Jean-Philippe Lang | |||
# |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class IssueMove < ActiveRecord::Migration[4.2] | |||
# model removed | |||
class Permission < ActiveRecord::Base; end |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class IssueAddNote < ActiveRecord::Migration[4.2] | |||
# model removed | |||
class Permission < ActiveRecord::Base; end |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class ExportPdf < ActiveRecord::Migration[4.2] | |||
# model removed | |||
class Permission < ActiveRecord::Base; end |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class IssueStartDate < ActiveRecord::Migration[4.2] | |||
def self.up | |||
add_column :issues, :start_date, :date |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class CalendarAndActivity < ActiveRecord::Migration[4.2] | |||
# model removed | |||
class Permission < ActiveRecord::Base; end |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class CreateJournals < ActiveRecord::Migration[4.2] | |||
# model removed, but needed for data migration |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class CreateUserPreferences < ActiveRecord::Migration[4.2] | |||
def self.up | |||
create_table :user_preferences do |t| |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class AddHideMailPref < ActiveRecord::Migration[4.2] | |||
def self.up | |||
add_column :user_preferences, :hide_mail, :boolean, :default => false |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class CreateComments < ActiveRecord::Migration[4.2] | |||
def self.up | |||
create_table :comments do |t| |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class AddNewsCommentsCount < ActiveRecord::Migration[4.2] | |||
def self.up | |||
add_column :news, :comments_count, :integer, :default => 0, :null => false |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class AddCommentsPermissions < ActiveRecord::Migration[4.2] | |||
# model removed | |||
class Permission < ActiveRecord::Base; end |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class CreateQueries < ActiveRecord::Migration[4.2] | |||
def self.up | |||
create_table :queries, :force => true do |t| |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class AddQueriesPermissions < ActiveRecord::Migration[4.2] | |||
# model removed | |||
class Permission < ActiveRecord::Base; end |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class CreateRepositories < ActiveRecord::Migration[4.2] | |||
def self.up | |||
create_table :repositories, :force => true do |t| |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class AddRepositoriesPermissions < ActiveRecord::Migration[4.2] | |||
# model removed | |||
class Permission < ActiveRecord::Base; end |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class CreateSettings < ActiveRecord::Migration[4.2] | |||
def self.up | |||
create_table :settings, :force => true do |t| |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class SetDocAndFilesNotifications < ActiveRecord::Migration[4.2] | |||
# model removed | |||
class Permission < ActiveRecord::Base; end |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class AddIssueStatusPosition < ActiveRecord::Migration[4.2] | |||
def self.up | |||
add_column :issue_statuses, :position, :integer, :default => 1 |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class AddRolePosition < ActiveRecord::Migration[4.2] | |||
def self.up | |||
add_column :roles, :position, :integer, :default => 1 |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class AddTrackerPosition < ActiveRecord::Migration[4.2] | |||
def self.up | |||
add_column :trackers, :position, :integer, :default => 1 |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class SerializePossiblesValues < ActiveRecord::Migration[4.2] | |||
def self.up | |||
CustomField.all.each do |field| |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class AddTrackerIsInRoadmap < ActiveRecord::Migration[4.2] | |||
def self.up | |||
add_column :trackers, :is_in_roadmap, :boolean, :default => true, :null => false |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class AddRoadmapPermission < ActiveRecord::Migration[4.2] | |||
# model removed | |||
class Permission < ActiveRecord::Base; end |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class AddSearchPermission < ActiveRecord::Migration[4.2] | |||
# model removed | |||
class Permission < ActiveRecord::Base; end |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class AddRepositoryLoginAndPassword < ActiveRecord::Migration[4.2] | |||
def self.up | |||
add_column :repositories, :login, :string, :limit => 60, :default => "" |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class CreateWikis < ActiveRecord::Migration[4.2] | |||
def self.up | |||
create_table :wikis do |t| |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class CreateWikiPages < ActiveRecord::Migration[4.2] | |||
def self.up | |||
create_table :wiki_pages do |t| |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class CreateWikiContents < ActiveRecord::Migration[4.2] | |||
def self.up | |||
create_table :wiki_contents do |t| |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class AddProjectsFeedsPermissions < ActiveRecord::Migration[4.2] | |||
# model removed | |||
class Permission < ActiveRecord::Base; end |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class AddRepositoryRootUrl < ActiveRecord::Migration[4.2] | |||
def self.up | |||
add_column :repositories, :root_url, :string, :limit => 255, :default => "" |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class CreateTimeEntries < ActiveRecord::Migration[4.2] | |||
def self.up | |||
create_table :time_entries do |t| |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class AddTimelogPermissions < ActiveRecord::Migration[4.2] | |||
# model removed | |||
class Permission < ActiveRecord::Base; end |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class CreateChangesets < ActiveRecord::Migration[4.2] | |||
def self.up | |||
create_table :changesets do |t| |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class CreateChanges < ActiveRecord::Migration[4.2] | |||
def self.up | |||
create_table :changes do |t| |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class AddChangesetCommitDate < ActiveRecord::Migration[4.2] | |||
def self.up | |||
add_column :changesets, :commit_date, :date |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class AddProjectIdentifier < ActiveRecord::Migration[4.2] | |||
def self.up | |||
add_column :projects, :identifier, :string, :limit => 20 |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class AddCustomFieldIsFilter < ActiveRecord::Migration[4.2] | |||
def self.up | |||
add_column :custom_fields, :is_filter, :boolean, :null => false, :default => false |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class CreateWatchers < ActiveRecord::Migration[4.2] | |||
def self.up | |||
create_table :watchers do |t| |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class CreateChangesetsIssues < ActiveRecord::Migration[4.2] | |||
def self.up | |||
create_table :changesets_issues, :id => false do |t| |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class RenameCommentToComments < ActiveRecord::Migration[4.2] | |||
def self.up | |||
rename_column(:comments, :comment, :comments) if ActiveRecord::Base.connection.columns(Comment.table_name).detect{|c| c.name == "comment"} |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class CreateIssueRelations < ActiveRecord::Migration[4.2] | |||
def self.up | |||
create_table :issue_relations do |t| |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class AddRelationsPermissions < ActiveRecord::Migration[4.2] | |||
# model removed | |||
class Permission < ActiveRecord::Base; end |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class SetLanguageLengthToFive < ActiveRecord::Migration[4.2] | |||
def self.up | |||
change_column :users, :language, :string, :limit => 5, :default => "" |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class CreateBoards < ActiveRecord::Migration[4.2] | |||
def self.up | |||
create_table :boards do |t| |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class CreateMessages < ActiveRecord::Migration[4.2] | |||
def self.up | |||
create_table :messages do |t| |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class AddBoardsPermissions < ActiveRecord::Migration[4.2] | |||
# model removed | |||
class Permission < ActiveRecord::Base; end |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class AllowNullVersionEffectiveDate < ActiveRecord::Migration[4.2] | |||
def self.up | |||
change_column :versions, :effective_date, :date, :default => nil, :null => true |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class AddWikiDestroyPagePermission < ActiveRecord::Migration[4.2] | |||
# model removed | |||
class Permission < ActiveRecord::Base; end |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class AddWikiAttachmentsPermissions < ActiveRecord::Migration[4.2] | |||
# model removed | |||
class Permission < ActiveRecord::Base; end |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class AddProjectStatus < ActiveRecord::Migration[4.2] | |||
def self.up | |||
add_column :projects, :status, :integer, :default => 1, :null => false |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class AddChangesRevision < ActiveRecord::Migration[4.2] | |||
def self.up | |||
add_column :changes, :revision, :string |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class AddChangesBranch < ActiveRecord::Migration[4.2] | |||
def self.up | |||
add_column :changes, :branch, :string |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class AddChangesetsScmid < ActiveRecord::Migration[4.2] | |||
def self.up | |||
add_column :changesets, :scmid, :string |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class AddRepositoriesType < ActiveRecord::Migration[4.2] | |||
def self.up | |||
add_column :repositories, :type, :string |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class AddRepositoriesChangesPermission < ActiveRecord::Migration[4.2] | |||
# model removed | |||
class Permission < ActiveRecord::Base; end |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class AddVersionsWikiPageTitle < ActiveRecord::Migration[4.2] | |||
def self.up | |||
add_column :versions, :wiki_page_title, :string |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class AddIssueCategoriesAssignedToId < ActiveRecord::Migration[4.2] | |||
def self.up | |||
add_column :issue_categories, :assigned_to_id, :integer |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class AddRolesAssignable < ActiveRecord::Migration[4.2] | |||
def self.up | |||
add_column :roles, :assignable, :boolean, :default => true |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class ChangeChangesetsCommitterLimit < ActiveRecord::Migration[4.2] | |||
def self.up | |||
change_column :changesets, :committer, :string, :limit => nil |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class AddRolesBuiltin < ActiveRecord::Migration[4.2] | |||
def self.up | |||
add_column :roles, :builtin, :integer, :default => 0, :null => false |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class InsertBuiltinRoles < ActiveRecord::Migration[4.2] | |||
def self.up | |||
Role.reset_column_information |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class AddRolesPermissions < ActiveRecord::Migration[4.2] | |||
def self.up | |||
add_column :roles, :permissions, :text |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class DropPermissions < ActiveRecord::Migration[4.2] | |||
def self.up | |||
drop_table :permissions |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class AddSettingsUpdatedOn < ActiveRecord::Migration[4.2] | |||
def self.up | |||
add_column :settings, :updated_on, :timestamp |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class AddCustomValueCustomizedIndex < ActiveRecord::Migration[4.2] | |||
def self.up | |||
add_index :custom_values, [:customized_type, :customized_id], :name => :custom_values_customized |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class CreateWikiRedirects < ActiveRecord::Migration[4.2] | |||
def self.up | |||
create_table :wiki_redirects do |t| |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class CreateEnabledModules < ActiveRecord::Migration[4.2] | |||
def self.up | |||
create_table :enabled_modules do |t| |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class AddIssuesEstimatedHours < ActiveRecord::Migration[4.2] | |||
def self.up | |||
add_column :issues, :estimated_hours, :float |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class ChangeAttachmentsContentTypeLimit < ActiveRecord::Migration[4.2] | |||
def self.up | |||
change_column :attachments, :content_type, :string, :limit => nil |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class AddQueriesColumnNames < ActiveRecord::Migration[4.2] | |||
def self.up | |||
add_column :queries, :column_names, :text |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class AddEnumerationsPosition < ActiveRecord::Migration[4.2] | |||
def self.up | |||
add_column(:enumerations, :position, :integer, :default => 1) unless Enumeration.column_names.include?('position') |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class AddEnumerationsIsDefault < ActiveRecord::Migration[4.2] | |||
def self.up | |||
add_column :enumerations, :is_default, :boolean, :default => false, :null => false |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class AddAuthSourcesTls < ActiveRecord::Migration[4.2] | |||
def self.up | |||
add_column :auth_sources, :tls, :boolean, :default => false, :null => false |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class AddMembersMailNotification < ActiveRecord::Migration[4.2] | |||
def self.up | |||
add_column :members, :mail_notification, :boolean, :default => false, :null => false |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class AllowNullPosition < ActiveRecord::Migration[4.2] | |||
def self.up | |||
Enumeration.reset_column_information |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class RemoveIssueStatusesHtmlColor < ActiveRecord::Migration[4.2] | |||
def self.up | |||
remove_column :issue_statuses, :html_color |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class AddCustomFieldsPosition < ActiveRecord::Migration[4.2] | |||
def self.up | |||
add_column(:custom_fields, :position, :integer, :default => 1) |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class AddUserPreferencesTimeZone < ActiveRecord::Migration[4.2] | |||
def self.up | |||
add_column :user_preferences, :time_zone, :string |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class AddUsersType < ActiveRecord::Migration[4.2] | |||
def self.up | |||
add_column :users, :type, :string |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class CreateProjectsTrackers < ActiveRecord::Migration[4.2] | |||
def self.up | |||
create_table :projects_trackers, :id => false do |t| |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class AddMessagesLocked < ActiveRecord::Migration[4.2] | |||
def self.up | |||
add_column :messages, :locked, :boolean, :default => false |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class AddMessagesSticky < ActiveRecord::Migration[4.2] | |||
def self.up | |||
add_column :messages, :sticky, :integer, :default => 0 |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class ChangeAuthSourcesAccountLimit < ActiveRecord::Migration[4.2] | |||
def self.up | |||
change_column :auth_sources, :account, :string, :limit => nil |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class AddRoleTrackerOldStatusIndexToWorkflows < ActiveRecord::Migration[4.2] | |||
def self.up | |||
add_index :workflows, [:role_id, :tracker_id, :old_status_id], :name => :wkfs_role_tracker_old_status |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class AddCustomFieldsSearchable < ActiveRecord::Migration[4.2] | |||
def self.up | |||
add_column :custom_fields, :searchable, :boolean, :default => false |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class ChangeProjectsDescriptionToText < ActiveRecord::Migration[4.2] | |||
def self.up | |||
change_column :projects, :description, :text, :null => true, :default => nil |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class AddCustomFieldsDefaultValue < ActiveRecord::Migration[4.2] | |||
def self.up | |||
add_column :custom_fields, :default_value, :text |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class AddAttachmentsDescription < ActiveRecord::Migration[4.2] | |||
def self.up | |||
add_column :attachments, :description, :string |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class ChangeVersionsNameLimit < ActiveRecord::Migration[4.2] | |||
def self.up | |||
change_column :versions, :name, :string, :limit => nil |
@@ -1,5 +1,3 @@ | |||
# frozen_string_literal: false | |||
class ChangeChangesetsRevisionToString < ActiveRecord::Migration[4.2] | |||
def self.up | |||
# Some backends (eg. SQLServer 2012) do not support changing the type |