pinchflat/priv/repo/migrations/20240125165519_add_index_frequency_to_channels.exs
Kieran 445e7c7417
Index a channel (#9)
* Ran a MediaItem generator; Reformatted to my liking

* [WIP] added basic index function

* setup oban

* Added basic Oban job for indexing

* Added in workers for indexing; hooked them into record creation flow

* Added a task model with a phx generator

* Tied together tasks with jobs and channels
2024-01-26 11:12:22 -08:00

9 lines
229 B
Elixir

defmodule Pinchflat.Repo.Migrations.AddIndexFrequencyToChannels do
use Ecto.Migration
def change do
alter table(:channels) do
add :index_frequency_minutes, :integer, default: 60 * 24, null: false
end
end
end