From c8e53165c7a1e21acc4fca6464e7f570c204854a Mon Sep 17 00:00:00 2001 From: Emi Matchu Date: Tue, 20 Feb 2024 17:01:54 -0800 Subject: [PATCH] Drop `item_translations` table Okay cool, we're successfully migrated off translations, we can delete the table now! I'm not worried about backing up this data as such, because the impress-2020 repo has a bunch of this data in its `public-data-from-modeling.sql.gz` file history. Safe to remove from the live app! --- .../20240221005949_drop_item_translations.rb | 17 +++++++++++++++++ db/schema.rb | 16 +--------------- 2 files changed, 18 insertions(+), 15 deletions(-) create mode 100644 db/migrate/20240221005949_drop_item_translations.rb diff --git a/db/migrate/20240221005949_drop_item_translations.rb b/db/migrate/20240221005949_drop_item_translations.rb new file mode 100644 index 00000000..016fa342 --- /dev/null +++ b/db/migrate/20240221005949_drop_item_translations.rb @@ -0,0 +1,17 @@ +class DropItemTranslations < ActiveRecord::Migration[7.1] + def change + drop_table "item_translations", id: :integer, charset: "latin1", collation: "latin1_swedish_ci", force: :cascade do |t| + t.integer "item_id" + t.string "locale" + t.string "name" + t.text "description" + t.string "rarity" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil + t.index ["item_id", "locale"], name: "index_item_translations_on_item_id_and_locale" + t.index ["item_id"], name: "index_item_translations_on_item_id" + t.index ["locale"], name: "index_item_translations_on_locale" + t.index ["name"], name: "index_item_translations_name" + end + end +end diff --git a/db/schema.rb b/db/schema.rb index cde7ddb4..5f7ba0d8 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema[7.1].define(version: 2024_02_21_004332) do +ActiveRecord::Schema[7.1].define(version: 2024_02_21_005949) do create_table "alt_styles", charset: "utf8mb4", collation: "utf8mb4_unicode_ci", force: :cascade do |t| t.integer "species_id", null: false t.integer "color_id", null: false @@ -115,20 +115,6 @@ ActiveRecord::Schema[7.1].define(version: 2024_02_21_004332) do t.index ["outfit_id", "is_worn"], name: "index_item_outfit_relationships_on_outfit_id_and_is_worn" end - create_table "item_translations", id: :integer, charset: "latin1", collation: "latin1_swedish_ci", force: :cascade do |t| - t.integer "item_id" - t.string "locale" - t.string "name" - t.text "description" - t.string "rarity" - t.datetime "created_at", precision: nil - t.datetime "updated_at", precision: nil - t.index ["item_id", "locale"], name: "index_item_translations_on_item_id_and_locale" - t.index ["item_id"], name: "index_item_translations_on_item_id" - t.index ["locale"], name: "index_item_translations_on_locale" - t.index ["name"], name: "index_item_translations_name" - end - create_table "items", id: :integer, charset: "utf8mb3", collation: "utf8mb3_unicode_ci", force: :cascade do |t| t.text "zones_restrict", null: false t.text "thumbnail_url", size: :medium, null: false