Add migration for new firmware params

pull/1004/head
Connor Rigby 2019-09-24 10:49:02 -07:00 committed by Connor Rigby
parent 069ace4dc7
commit 10aef6b1c7
1 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,14 @@
defmodule FarmbotCore.Asset.Repo.Migrations.AddFirmwareParams do
use Ecto.Migration
def change do
alter table("firmware_configs") do
add(:movement_motor_current_x, :float)
add(:movement_motor_current_y, :float)
add(:movement_motor_current_z, :float)
add(:movement_stall_sensitivity_x, :float)
add(:movement_stall_sensitivity_y, :float)
add(:movement_stall_sensitivity_z, :float)
end
end
end