From 65d80244762212112e614a2da8fc99cd2b769180 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Sun, 22 Jan 2023 19:57:49 -0800 Subject: [PATCH] Add XLB stat fields --- db/migrate/20230123035602_add_max_hpatkxlb_to_summon.rb | 6 ++++++ db/schema.rb | 7 ++++++- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20230123035602_add_max_hpatkxlb_to_summon.rb diff --git a/db/migrate/20230123035602_add_max_hpatkxlb_to_summon.rb b/db/migrate/20230123035602_add_max_hpatkxlb_to_summon.rb new file mode 100644 index 0000000..a5b5651 --- /dev/null +++ b/db/migrate/20230123035602_add_max_hpatkxlb_to_summon.rb @@ -0,0 +1,6 @@ +class AddMaxHpatkxlbToSummon < ActiveRecord::Migration[7.0] + def change + add_column :summons, :max_atk_xlb, :integer + add_column :summons, :max_hp_xlb, :integer + end +end diff --git a/db/schema.rb b/db/schema.rb index 4cea1cb..28c80a7 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.0].define(version: 2023_01_07_153724) do +ActiveRecord::Schema[7.0].define(version: 2023_01_23_035602) do # These are extensions that must be enabled in order to support this database enable_extension "btree_gin" enable_extension "pg_trgm" @@ -202,11 +202,13 @@ ActiveRecord::Schema[7.0].define(version: 2023_01_07_153724) do t.integer "button_count" t.integer "chain_count" t.integer "turn_count" + t.uuid "source_party_id" t.index ["job_id"], name: "index_parties_on_job_id" t.index ["skill0_id"], name: "index_parties_on_skill0_id" t.index ["skill1_id"], name: "index_parties_on_skill1_id" t.index ["skill2_id"], name: "index_parties_on_skill2_id" t.index ["skill3_id"], name: "index_parties_on_skill3_id" + t.index ["source_party_id"], name: "index_parties_on_source_party_id" t.index ["user_id"], name: "index_parties_on_user_id" end @@ -240,6 +242,8 @@ ActiveRecord::Schema[7.0].define(version: 2023_01_07_153724) do t.boolean "subaura", default: false, null: false t.boolean "limit", default: false, null: false t.boolean "xlb", default: false, null: false + t.integer "max_atk_xlb" + t.integer "max_hp_xlb" t.index ["name_en"], name: "index_summons_on_name_en", opclass: :gin_trgm_ops, using: :gin end @@ -313,6 +317,7 @@ ActiveRecord::Schema[7.0].define(version: 2023_01_07_153724) do add_foreign_key "parties", "job_skills", column: "skill2_id" add_foreign_key "parties", "job_skills", column: "skill3_id" add_foreign_key "parties", "jobs" + add_foreign_key "parties", "parties", column: "source_party_id" add_foreign_key "parties", "raids" add_foreign_key "parties", "users" end