mirror of
https://github.com/teslamate-org/teslamate.git
synced 2026-01-24 21:06:08 +08:00
Merge 20191117042320_add_cost_field_to_charges.exs (Charge Cost field) (#258)
* Create 20191117042320_add_cost_field_to_charges.exs * Update 20191117042320_add_cost_field_to_charges.exs Add end block * Update 20191117042320_add_cost_field_to_charges.exs Fix type definition and correct table (thanks @adriankumpf!) * Update 20191117042320_add_cost_field_to_charges.exs Resolve required mix formatting
This commit is contained in:
committed by
Adrian Kumpf
parent
0f077e1608
commit
a0618d314d
@@ -0,0 +1,9 @@
|
||||
defmodule TeslaMate.Repo.Migrations.AddCostFieldToCharges do
|
||||
use Ecto.Migration
|
||||
|
||||
def change do
|
||||
alter table(:charging_processes) do
|
||||
add(:cost, :decimal, precision: 6, scale: 2)
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user