Skip to content

Commit

Permalink
fix content type indexes
Browse files Browse the repository at this point in the history
  • Loading branch information
ezekg committed Dec 5, 2024
1 parent aaa4603 commit 8a3a382
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion db/migrate/20241113134529_create_release_descriptors.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def change
t.index %i[release_artifact_id]
t.index %i[content_path release_artifact_id], unique: true
t.index %i[content_digest release_artifact_id], unique: true
t.index %i[content_type release_artifact_id]
t.index %i[content_type]
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def change
algorithm: :concurrently,
unique: true

add_index :release_manifests, %i[content_type release_artifact_id],
add_index :release_manifests, :content_type,
algorithm: :concurrently
end
end
4 changes: 2 additions & 2 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@
t.index ["account_id", "created_at"], name: "index_release_descriptors_on_account_id_and_created_at", order: { created_at: :desc }
t.index ["content_digest", "release_artifact_id"], name: "idx_on_content_digest_release_artifact_id_ca13eb81a4", unique: true
t.index ["content_path", "release_artifact_id"], name: "idx_on_content_path_release_artifact_id_7ec9f722af", unique: true
t.index ["content_type", "release_artifact_id"], name: "idx_on_content_type_release_artifact_id_039cc326e1"
t.index ["content_type"], name: "index_release_descriptors_on_content_type"
t.index ["environment_id"], name: "index_release_descriptors_on_environment_id"
t.index ["release_artifact_id"], name: "index_release_descriptors_on_release_artifact_id"
t.index ["release_id"], name: "index_release_descriptors_on_release_id"
Expand Down Expand Up @@ -618,7 +618,7 @@
t.index ["account_id", "created_at"], name: "index_release_manifests_on_account_id_and_created_at", order: { created_at: :desc }
t.index ["content_digest", "release_artifact_id"], name: "idx_on_content_digest_release_artifact_id_cba1f00640", unique: true
t.index ["content_path", "release_artifact_id"], name: "idx_on_content_path_release_artifact_id_f77b8efd5b", unique: true
t.index ["content_type", "release_artifact_id"], name: "idx_on_content_type_release_artifact_id_f442b302f3"
t.index ["content_type"], name: "index_release_manifests_on_content_type"
t.index ["environment_id"], name: "index_release_manifests_on_environment_id"
t.index ["release_artifact_id"], name: "index_release_manifests_on_release_artifact_id"
t.index ["release_id"], name: "index_release_manifests_on_release_id"
Expand Down

0 comments on commit 8a3a382

Please sign in to comment.