mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-22 10:38:07 +01:00
Remove duplicate indexes from database (#32454)
This commit is contained in:
parent
c3e684b715
commit
fae1de699c
2 changed files with 11 additions and 5 deletions
10
db/migrate/20241014010506_remove_duplicate_indexes.rb
Normal file
10
db/migrate/20241014010506_remove_duplicate_indexes.rb
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
class RemoveDuplicateIndexes < ActiveRecord::Migration[7.1]
|
||||||
|
def change
|
||||||
|
remove_index :account_aliases, :account_id
|
||||||
|
remove_index :account_relationship_severance_events, :account_id
|
||||||
|
remove_index :custom_filter_statuses, :status_id
|
||||||
|
remove_index :webauthn_credentials, :user_id
|
||||||
|
end
|
||||||
|
end
|
|
@ -10,7 +10,7 @@
|
||||||
#
|
#
|
||||||
# It's strongly recommended that you check this file into your version control system.
|
# It's strongly recommended that you check this file into your version control system.
|
||||||
|
|
||||||
ActiveRecord::Schema[7.1].define(version: 2024_10_07_071624) do
|
ActiveRecord::Schema[7.1].define(version: 2024_10_14_010506) do
|
||||||
# These are extensions that must be enabled in order to support this database
|
# These are extensions that must be enabled in order to support this database
|
||||||
enable_extension "plpgsql"
|
enable_extension "plpgsql"
|
||||||
|
|
||||||
|
@ -21,7 +21,6 @@ ActiveRecord::Schema[7.1].define(version: 2024_10_07_071624) do
|
||||||
t.datetime "created_at", precision: nil, null: false
|
t.datetime "created_at", precision: nil, null: false
|
||||||
t.datetime "updated_at", precision: nil, null: false
|
t.datetime "updated_at", precision: nil, null: false
|
||||||
t.index ["account_id", "uri"], name: "index_account_aliases_on_account_id_and_uri", unique: true
|
t.index ["account_id", "uri"], name: "index_account_aliases_on_account_id_and_uri", unique: true
|
||||||
t.index ["account_id"], name: "index_account_aliases_on_account_id"
|
|
||||||
end
|
end
|
||||||
|
|
||||||
create_table "account_conversations", force: :cascade do |t|
|
create_table "account_conversations", force: :cascade do |t|
|
||||||
|
@ -99,7 +98,6 @@ ActiveRecord::Schema[7.1].define(version: 2024_10_07_071624) do
|
||||||
t.integer "followers_count", default: 0, null: false
|
t.integer "followers_count", default: 0, null: false
|
||||||
t.integer "following_count", default: 0, null: false
|
t.integer "following_count", default: 0, null: false
|
||||||
t.index ["account_id", "relationship_severance_event_id"], name: "idx_on_account_id_relationship_severance_event_id_7bd82bf20e", unique: true
|
t.index ["account_id", "relationship_severance_event_id"], name: "idx_on_account_id_relationship_severance_event_id_7bd82bf20e", unique: true
|
||||||
t.index ["account_id"], name: "index_account_relationship_severance_events_on_account_id"
|
|
||||||
t.index ["relationship_severance_event_id"], name: "idx_on_relationship_severance_event_id_403f53e707"
|
t.index ["relationship_severance_event_id"], name: "idx_on_relationship_severance_event_id_403f53e707"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -397,7 +395,6 @@ ActiveRecord::Schema[7.1].define(version: 2024_10_07_071624) do
|
||||||
t.datetime "updated_at", null: false
|
t.datetime "updated_at", null: false
|
||||||
t.index ["custom_filter_id"], name: "index_custom_filter_statuses_on_custom_filter_id"
|
t.index ["custom_filter_id"], name: "index_custom_filter_statuses_on_custom_filter_id"
|
||||||
t.index ["status_id", "custom_filter_id"], name: "index_custom_filter_statuses_on_status_id_and_custom_filter_id", unique: true
|
t.index ["status_id", "custom_filter_id"], name: "index_custom_filter_statuses_on_status_id_and_custom_filter_id", unique: true
|
||||||
t.index ["status_id"], name: "index_custom_filter_statuses_on_status_id"
|
|
||||||
end
|
end
|
||||||
|
|
||||||
create_table "custom_filters", force: :cascade do |t|
|
create_table "custom_filters", force: :cascade do |t|
|
||||||
|
@ -1202,7 +1199,6 @@ ActiveRecord::Schema[7.1].define(version: 2024_10_07_071624) do
|
||||||
t.datetime "updated_at", precision: nil, null: false
|
t.datetime "updated_at", precision: nil, null: false
|
||||||
t.index ["external_id"], name: "index_webauthn_credentials_on_external_id", unique: true
|
t.index ["external_id"], name: "index_webauthn_credentials_on_external_id", unique: true
|
||||||
t.index ["user_id", "nickname"], name: "index_webauthn_credentials_on_user_id_and_nickname", unique: true
|
t.index ["user_id", "nickname"], name: "index_webauthn_credentials_on_user_id_and_nickname", unique: true
|
||||||
t.index ["user_id"], name: "index_webauthn_credentials_on_user_id"
|
|
||||||
end
|
end
|
||||||
|
|
||||||
create_table "webhooks", force: :cascade do |t|
|
create_table "webhooks", force: :cascade do |t|
|
||||||
|
|
Loading…
Reference in a new issue