Patch #31506 » 0003-Remove-trailing-whitespaces-from-db-migrate.patch
db/migrate/20110223180953_salt_user_passwords.rb | ||
---|---|---|
1 | 1 |
class SaltUserPasswords < ActiveRecord::Migration[4.2] |
2 |
|
|
2 | ||
3 | 3 |
def self.up |
4 | 4 |
say_with_time "Salting user passwords, this may take some time..." do |
5 | 5 |
User.salt_unsalted_passwords! |
db/migrate/20130201184705_add_unique_index_on_tokens_value.rb | ||
---|---|---|
4 | 4 |
# Just in case |
5 | 5 |
duplicates = Token.connection.select_values("SELECT value FROM #{Token.table_name} GROUP BY value HAVING COUNT(id) > 1") |
6 | 6 |
Token.where(:value => duplicates).delete_all |
7 |
|
|
7 | ||
8 | 8 |
add_index :tokens, :value, :unique => true, :name => 'tokens_value' |
9 | 9 |
end |
10 | 10 |
end |
db/migrate/20151020182334_change_attachments_filesize_limit_to_8.rb | ||
---|---|---|
1 | 1 |
class ChangeAttachmentsFilesizeLimitTo8 < ActiveRecord::Migration[4.2] |
2 |
def self.up
|
|
2 |
def self.up |
|
3 | 3 |
change_column :attachments, :filesize, :integer, :limit => 8, :default => 0, :null => false |
4 | 4 |
end |
5 | 5 |
db/migrate/20151020182731_fix_comma_in_user_format_setting_value.rb | ||
---|---|---|
1 | 1 |
class FixCommaInUserFormatSettingValue < ActiveRecord::Migration[4.2] |
2 |
def self.up
|
|
2 |
def self.up |
|
3 | 3 |
Setting. |
4 | 4 |
where(:name => 'user_format', :value => 'lastname_coma_firstname'). |
5 | 5 |
update_all(:value => 'lastname_comma_firstname') |
db/migrate/20151021184614_change_issue_categories_name_limit_to_60.rb | ||
---|---|---|
1 | 1 |
class ChangeIssueCategoriesNameLimitTo60 < ActiveRecord::Migration[4.2] |
2 |
def self.up
|
|
2 |
def self.up |
|
3 | 3 |
change_column :issue_categories, :name, :string, :limit => 60, :default => "", :null => false |
4 | 4 |
end |
5 | 5 |
db/migrate/20151021185456_change_auth_sources_filter_to_text.rb | ||
---|---|---|
1 | 1 |
class ChangeAuthSourcesFilterToText < ActiveRecord::Migration[4.2] |
2 |
def self.up
|
|
2 |
def self.up |
|
3 | 3 |
change_column :auth_sources, :filter, :text |
4 | 4 |
end |
5 | 5 |