Skip to content

Commit

Permalink
Add migration for switching to BigInt for Revision.mw_rev_id
Browse files Browse the repository at this point in the history
  • Loading branch information
ragesoss committed May 15, 2024
1 parent ff39f40 commit 069034e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions db/migrate/20240515163420_change_mw_rev_id_size.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class ChangeMwRevIdSize < ActiveRecord::Migration[7.0]
def up
change_column :revisions, :mw_rev_id, :bigint
end
end
4 changes: 2 additions & 2 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema[7.0].define(version: 2022_08_15_143028) do
ActiveRecord::Schema[7.0].define(version: 2024_05_15_163420) do
create_table "alerts", id: :integer, charset: "utf8mb4", force: :cascade do |t|
t.integer "course_id"
t.integer "user_id"
Expand Down Expand Up @@ -370,7 +370,7 @@
t.boolean "system", default: false
t.integer "ithenticate_id"
t.integer "wiki_id"
t.integer "mw_rev_id"
t.bigint "mw_rev_id"
t.integer "mw_page_id"
t.text "features"
t.text "features_previous"
Expand Down

0 comments on commit 069034e

Please sign in to comment.