diff options
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20170322143850_change_primary_key_to_bigint_on_statuses.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/db/migrate/20170322143850_change_primary_key_to_bigint_on_statuses.rb b/db/migrate/20170322143850_change_primary_key_to_bigint_on_statuses.rb new file mode 100644 index 000000000..16b5db7dd --- /dev/null +++ b/db/migrate/20170322143850_change_primary_key_to_bigint_on_statuses.rb @@ -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 |