farmbot_os/farmbot_core/priv/asset/migrations/20170920182759_add_sequence...

16 lines
362 B
Elixir

defmodule Farmbot.Asset.Repo.Migrations.AddSequencesTable do
use Ecto.Migration
def change do
create table("sequences", primary_key: false) do
add(:id, :integer)
add(:name, :string)
add(:kind, :string, default: "sequence")
add(:args, :text)
add(:body, :text)
end
create(unique_index("sequences", [:id]))
end
end