Merge remote-tracking branch 'parent/main' into upstream-20240628
This commit is contained in:
commit
6955843321
178 changed files with 1924 additions and 1178 deletions
|
@ -1,7 +1,11 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class MakeUrisNullableInStatuses < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
def up
|
||||
change_column :statuses, :uri, :string, null: true, default: nil
|
||||
end
|
||||
|
||||
def down
|
||||
raise ActiveRecord::IrreversibleMigration
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class ChangePrimaryKeyToBigintOnStatuses < ActiveRecord::Migration[5.0]
|
||||
def change
|
||||
def up
|
||||
change_table(:statuses, bulk: true) do |t|
|
||||
t.change :id, :bigint
|
||||
t.change :reblog_of_id, :bigint
|
||||
|
@ -16,4 +16,8 @@ class ChangePrimaryKeyToBigintOnStatuses < ActiveRecord::Migration[5.0]
|
|||
change_column :statuses_tags, :status_id, :bigint
|
||||
change_column :stream_entries, :activity_id, :bigint
|
||||
end
|
||||
|
||||
def down
|
||||
raise ActiveRecord::IrreversibleMigration
|
||||
end
|
||||
end
|
||||
|
|
|
@ -5,7 +5,7 @@ class ChangeLanguageFilterToOptOut < ActiveRecord::Migration[5.0]
|
|||
remove_index :users, :allowed_languages
|
||||
|
||||
change_table(:users, bulk: true) do |t|
|
||||
t.remove :allowed_languages
|
||||
t.remove :allowed_languages, type: :string, array: true, default: [], null: false
|
||||
t.column :filtered_languages, :string, array: true, default: [], null: false
|
||||
end
|
||||
|
||||
|
|
|
@ -1,7 +1,11 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class RemoveDefaultLanguageFromStatuses < ActiveRecord::Migration[5.1]
|
||||
def change
|
||||
def up
|
||||
change_column :statuses, :language, :string, default: nil, null: true
|
||||
end
|
||||
|
||||
def down
|
||||
raise ActiveRecord::IrreversibleMigration
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue