···11+defmodule Sower.Repo.Migrations.AddSeedTimestamps do
22+ @moduledoc """
33+ Updates resources based on their most recent snapshots.
44+55+ This file was autogenerated with `mix ash_postgres.generate_migrations`
66+ """
77+88+ use Ecto.Migration
99+1010+ def up do
1111+ alter table(:seeds) do
1212+ add :inserted_at, :utc_datetime_usec,
1313+ null: false,
1414+ default: fragment("(now() AT TIME ZONE 'utc')")
1515+1616+ add :updated_at, :utc_datetime_usec,
1717+ null: false,
1818+ default: fragment("(now() AT TIME ZONE 'utc')")
1919+ end
2020+ end
2121+2222+ def down do
2323+ alter table(:seeds) do
2424+ remove :updated_at
2525+ remove :inserted_at
2626+ end
2727+ end
2828+end
···11+defmodule Sower.Repo.Migrations.AddSeedOutPath do
22+ @moduledoc """
33+ Updates resources based on their most recent snapshots.
44+55+ This file was autogenerated with `mix ash_postgres.generate_migrations`
66+ """
77+88+ use Ecto.Migration
99+1010+ def up do
1111+ alter table(:seeds) do
1212+ add :out_path, :text, null: false
1313+ end
1414+ end
1515+1616+ def down do
1717+ alter table(:seeds) do
1818+ remove :out_path
1919+ end
2020+ end
2121+end
···11+defmodule Sower.Repo.Migrations.AddSeedUniqueness do
22+ @moduledoc """
33+ Updates resources based on their most recent snapshots.
44+55+ This file was autogenerated with `mix ash_postgres.generate_migrations`
66+ """
77+88+ use Ecto.Migration
99+1010+ def up do
1111+ create unique_index(:seeds, [:name, :type, :out_path], name: "seeds_seed_index")
1212+ end
1313+1414+ def down do
1515+ drop_if_exists unique_index(:seeds, [:name, :type, :out_path], name: "seeds_seed_index")
1616+ end
1717+end