forked from OpenNeo/impress
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!
This commit is contained in:
parent
f85703d2cc
commit
c8e53165c7
2 changed files with 18 additions and 15 deletions
17
db/migrate/20240221005949_drop_item_translations.rb
Normal file
17
db/migrate/20240221005949_drop_item_translations.rb
Normal file
|
@ -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
|
16
db/schema.rb
16
db/schema.rb
|
@ -10,7 +10,7 @@
|
||||||
#
|
#
|
||||||
# It's strongly recommended that you check this file into your version control system.
|
# 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|
|
create_table "alt_styles", charset: "utf8mb4", collation: "utf8mb4_unicode_ci", force: :cascade do |t|
|
||||||
t.integer "species_id", null: false
|
t.integer "species_id", null: false
|
||||||
t.integer "color_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"
|
t.index ["outfit_id", "is_worn"], name: "index_item_outfit_relationships_on_outfit_id_and_is_worn"
|
||||||
end
|
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|
|
create_table "items", id: :integer, charset: "utf8mb3", collation: "utf8mb3_unicode_ci", force: :cascade do |t|
|
||||||
t.text "zones_restrict", null: false
|
t.text "zones_restrict", null: false
|
||||||
t.text "thumbnail_url", size: :medium, null: false
|
t.text "thumbnail_url", size: :medium, null: false
|
||||||
|
|
Loading…
Reference in a new issue