From 72bfb235ce8cb6e78615c71d82edd2d53d6515b3 Mon Sep 17 00:00:00 2001 From: Stuart Date: Wed, 18 Dec 2024 16:52:37 +0000 Subject: [PATCH] replace size: :medium in schema.rb replaces with limit of 16M which is equivalent to mysqls mediumtext --- .gitignore | 2 ++ db/schema.rb | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 5c5f043efe..6797e66b2c 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,8 @@ rails_best_practices_output.html db/*.sqlite3 db/*.sqlite3-journal +db/*.sqlite3-shm +db/*.sqlite3-wal config/database.yml config/initializers/seek_local.rb config/environment_local.rb diff --git a/db/schema.rb b/db/schema.rb index 649f4571d1..098d66f985 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -25,7 +25,7 @@ t.datetime "updated_at" t.string "http_referer" t.text "user_agent" - t.text "data", size: :medium + t.text "data", limit: 16777215 t.string "controller_name" t.index ["action"], name: "act_logs_action_index" t.index ["activity_loggable_type", "activity_loggable_id"], name: "act_logs_act_loggable_index" @@ -821,7 +821,7 @@ t.text "root_path" t.datetime "created_at", null: false t.datetime "updated_at", null: false - t.text "resource_attributes", size: :medium + t.text "resource_attributes", limit: 16777215 t.bigint "git_repository_id" t.integer "visibility" t.string "doi" @@ -1881,7 +1881,7 @@ create_table "sessions", id: :integer, force: :cascade do |t| t.string "session_id", null: false - t.text "data", size: :medium + t.text "data", limit: 16777215 t.datetime "created_at" t.datetime "updated_at" t.index ["session_id"], name: "index_sessions_on_session_id" @@ -2224,7 +2224,7 @@ create_table "text_values", id: :integer, force: :cascade do |t| t.integer "version" t.integer "version_creator_id" - t.text "text", size: :medium, null: false + t.text "text", limit: 16777215, null: false t.datetime "created_at" t.datetime "updated_at" end