revert 5c5a35be24
Some checks are pending
Check i18n / check-i18n (push) Waiting to run
CodeQL / Analyze (push) Waiting to run
Check formatting / lint (push) Waiting to run
Ruby Linting / lint (push) Waiting to run
Historical data migration test / test (16-alpine) (push) Waiting to run
Historical data migration test / test (14-alpine) (push) Waiting to run
Historical data migration test / test (15-alpine) (push) Waiting to run
Historical data migration test / test (17-alpine) (push) Waiting to run
Ruby Testing / build (production) (push) Waiting to run
Ruby Testing / build (test) (push) Waiting to run
Ruby Testing / test (.ruby-version) (push) Blocked by required conditions
Ruby Testing / test (3.2) (push) Blocked by required conditions
Ruby Testing / test (3.3) (push) Blocked by required conditions
Ruby Testing / Libvips tests (push) Blocked by required conditions
Ruby Testing / End to End testing (push) Blocked by required conditions
Ruby Testing / Elastic Search integration testing (push) Blocked by required conditions
Ruby Testing / Back to original and return test (push) Blocked by required conditions
Some checks are pending
Check i18n / check-i18n (push) Waiting to run
CodeQL / Analyze (push) Waiting to run
Check formatting / lint (push) Waiting to run
Ruby Linting / lint (push) Waiting to run
Historical data migration test / test (16-alpine) (push) Waiting to run
Historical data migration test / test (14-alpine) (push) Waiting to run
Historical data migration test / test (15-alpine) (push) Waiting to run
Historical data migration test / test (17-alpine) (push) Waiting to run
Ruby Testing / build (production) (push) Waiting to run
Ruby Testing / build (test) (push) Waiting to run
Ruby Testing / test (.ruby-version) (push) Blocked by required conditions
Ruby Testing / test (3.2) (push) Blocked by required conditions
Ruby Testing / test (3.3) (push) Blocked by required conditions
Ruby Testing / Libvips tests (push) Blocked by required conditions
Ruby Testing / End to End testing (push) Blocked by required conditions
Ruby Testing / Elastic Search integration testing (push) Blocked by required conditions
Ruby Testing / Back to original and return test (push) Blocked by required conditions
revert Fix
This commit is contained in:
parent
3f9dc3747b
commit
820fff38d7
1 changed files with 11 additions and 13 deletions
|
@ -1,14 +1,12 @@
|
||||||
# db/migrate/20240612000000_add_local_top_algorithm_support.rb
|
# db/migrate/20240612000000_add_local_top_algorithm_support.rb
|
||||||
class AddLocalTopAlgorithmSupport < ActiveRecord::Migration[8.0]
|
class AddLocalTopAlgorithmSupport < ActiveRecord::Migration[6.1]
|
||||||
disable_ddl_transaction! # Allows concurrent operations
|
def change
|
||||||
|
# Ensure status_stats exists (Mastodon usually has this)
|
||||||
def change
|
unless column_exists?(:statuses, :status_stat_id)
|
||||||
# 1. Add reference without immediate foreign key validation
|
add_reference :statuses, :status_stat, foreign_key: { on_delete: :cascade }
|
||||||
add_reference :statuses, :status_stat,
|
end
|
||||||
index: { algorithm: :concurrently }, # Concurrent index
|
|
||||||
foreign_key: { on_delete: :cascade, validate: false } # Defer validation
|
# Add user preference for feed algorithm (default: chronological)
|
||||||
|
add_column :users, :feed_algorithm, :string, default: 'chronological'
|
||||||
# 2. Add user preference column (safe operation)
|
end
|
||||||
add_column :users, :feed_algorithm, :string, default: 'chronological'
|
end
|
||||||
end
|
|
||||||
end
|
|
Loading…
Add table
Add a link
Reference in a new issue