Package Files file_type may be an irrelevant column/attribute
Background
file_type
in packages_package_files
is not seemingly being used anywhere (all values are NULL
on production)
create_table "packages_package_files", force: :cascade do |t|
t.bigint "package_id", null: false
t.datetime_with_timezone "created_at", null: false
t.datetime_with_timezone "updated_at", null: false
t.bigint "size"
t.integer "file_type"
t.integer "file_store"
t.binary "file_md5"
t.binary "file_sha1"
t.string "file_name", null: false
t.text "file", null: false
t.index ["package_id", "file_name"], name: "index_packages_package_files_on_package_id_and_file_name"
end
It is an integer type, which I read as meaning perhaps the original intent was for it to be an enum, but it is not currently being used for that. There was some code in the Maven API specs that was trying to use it to look up a file by format (for example, jar
, xml
, tgz
, etc...), but the code was not actually doing anything so it was removed.
Proposal
The column should be removed.
Reference
Edited by Steve Abrams