parent
472fb6816b
commit
cb92210ece
3 changed files with 15 additions and 8 deletions
|
|
@ -10,7 +10,7 @@ module Api
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
fields :slug, :series, :slot, :group, :order
|
fields :granblue_id, :slug, :series, :slot, :group, :order
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
class AddGranblueIdToWeaponKeys < ActiveRecord::Migration[7.0]
|
||||||
|
def change
|
||||||
|
# This needs to be NOT NULL, but initially it will be nullable until we migrate data
|
||||||
|
add_column :weapon_keys, :granblue_id, :integer, unique: true, null: true
|
||||||
|
end
|
||||||
|
end
|
||||||
15
db/schema.rb
15
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.0].define(version: 2023_01_31_084343) do
|
ActiveRecord::Schema[7.0].define(version: 2023_03_15_095656) do
|
||||||
# These are extensions that must be enabled in order to support this database
|
# These are extensions that must be enabled in order to support this database
|
||||||
enable_extension "btree_gin"
|
enable_extension "btree_gin"
|
||||||
enable_extension "pg_trgm"
|
enable_extension "pg_trgm"
|
||||||
|
|
@ -74,12 +74,12 @@ ActiveRecord::Schema[7.0].define(version: 2023_01_31_084343) do
|
||||||
t.datetime "updated_at", null: false
|
t.datetime "updated_at", null: false
|
||||||
t.boolean "perpetuity", default: false, null: false
|
t.boolean "perpetuity", default: false, null: false
|
||||||
t.integer "transcendence_step", default: 0, null: false
|
t.integer "transcendence_step", default: 0, null: false
|
||||||
t.jsonb "ring1", default: {"modifier"=>nil, "strength"=>nil}, null: false
|
t.jsonb "ring1", default: { "modifier" => nil, "strength" => nil }, null: false
|
||||||
t.jsonb "ring2", default: {"modifier"=>nil, "strength"=>nil}, null: false
|
t.jsonb "ring2", default: { "modifier" => nil, "strength" => nil }, null: false
|
||||||
t.jsonb "ring3", default: {"modifier"=>nil, "strength"=>nil}, null: false
|
t.jsonb "ring3", default: { "modifier" => nil, "strength" => nil }, null: false
|
||||||
t.jsonb "ring4", default: {"modifier"=>nil, "strength"=>nil}, null: false
|
t.jsonb "ring4", default: { "modifier" => nil, "strength" => nil }, null: false
|
||||||
t.jsonb "earring", default: {"modifier"=>nil, "strength"=>nil}, null: false
|
t.jsonb "earring", default: { "modifier" => nil, "strength" => nil }, null: false
|
||||||
t.jsonb "awakening", default: {"type"=>1, "level"=>1}, null: false
|
t.jsonb "awakening", default: { "type" => 1, "level" => 1 }, null: false
|
||||||
t.index ["character_id"], name: "index_grid_characters_on_character_id"
|
t.index ["character_id"], name: "index_grid_characters_on_character_id"
|
||||||
t.index ["party_id"], name: "index_grid_characters_on_party_id"
|
t.index ["party_id"], name: "index_grid_characters_on_party_id"
|
||||||
end
|
end
|
||||||
|
|
@ -299,6 +299,7 @@ ActiveRecord::Schema[7.0].define(version: 2023_01_31_084343) do
|
||||||
t.integer "group"
|
t.integer "group"
|
||||||
t.integer "order"
|
t.integer "order"
|
||||||
t.string "slug"
|
t.string "slug"
|
||||||
|
t.integer "granblue_id"
|
||||||
end
|
end
|
||||||
|
|
||||||
create_table "weapons", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
|
create_table "weapons", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue