mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 04:03:57 -06:00
80268357e7
Per review https://review.discourse.org/t/dev-add-verified-to-uploads-and-fill-in-s3-inventory-10406/14180 Change the verified column for Upload to a verified_status integer column, to avoid having NULL as a weird implicit status.
17 lines
398 B
Ruby
17 lines
398 B
Ruby
# frozen_string_literal: true
|
|
|
|
class AddIndexToUploadsVerificationStatus < ActiveRecord::Migration[6.0]
|
|
disable_ddl_transaction!
|
|
|
|
def up
|
|
execute <<~SQL
|
|
CREATE INDEX CONCURRENTLY IF NOT EXISTS
|
|
idx_uploads_on_verification_status ON uploads USING btree (verification_status)
|
|
SQL
|
|
end
|
|
|
|
def down
|
|
execute "DROP INDEX IF EXISTS idx_uploads_on_verification_status"
|
|
end
|
|
end
|