logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe git clone https://hacktivis.me/git/mastofe.git

20170322143850_change_primary_key_to_bigint_on_statuses.rb (634B)


  1. class ChangePrimaryKeyToBigintOnStatuses < ActiveRecord::Migration[5.0]
  2. def change
  3. change_column :statuses, :id, :bigint
  4. change_column :statuses, :reblog_of_id, :bigint
  5. change_column :statuses, :in_reply_to_id, :bigint
  6. change_column :media_attachments, :status_id, :bigint
  7. change_column :mentions, :status_id, :bigint
  8. change_column :notifications, :activity_id, :bigint
  9. change_column :preview_cards, :status_id, :bigint
  10. change_column :reports, :status_ids, :bigint, array: true
  11. change_column :statuses_tags, :status_id, :bigint
  12. change_column :stream_entries, :activity_id, :bigint
  13. end
  14. end