Upgrade status IDs to bigint
This commit is contained in:
parent
7637386228
commit
22e06a4077
2 changed files with 26 additions and 11 deletions
|
@ -0,0 +1,15 @@
|
|||
class ChangePrimaryKeyToBigintOnStatuses < ActiveRecord::Migration[5.0]
|
||||
def change
|
||||
change_column :statuses, :id, :bigint
|
||||
change_column :statuses, :reblog_of_id, :bigint
|
||||
change_column :statuses, :in_reply_to_id, :bigint
|
||||
|
||||
change_column :media_attachments, :status_id, :bigint
|
||||
change_column :mentions, :status_id, :bigint
|
||||
change_column :notifications, :activity_id, :bigint
|
||||
change_column :preview_cards, :status_id, :bigint
|
||||
change_column :reports, :status_ids, :bigint, array: true
|
||||
change_column :statuses_tags, :status_id, :bigint
|
||||
change_column :stream_entries, :activity_id, :bigint
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue