-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add feed status, dataplicity_id to feeds (#547)
* Allow detection and candidate update actions to accept more attributes * Add online aggregate and dataplicity_id column to feeds * Update accepts for feed create and update
- Loading branch information
Showing
7 changed files
with
754 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
server/priv/repo/migrations/20240725191221_add_inserted_at_index_to_feed_segments.exs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
defmodule Orcasite.Repo.Migrations.AddInsertedAtIndexToFeedSegments do | ||
@moduledoc """ | ||
Updates resources based on their most recent snapshots. | ||
This file was autogenerated with `mix ash_postgres.generate_migrations` | ||
""" | ||
|
||
use Ecto.Migration | ||
|
||
def up do | ||
create index(:feed_segments, [:inserted_at]) | ||
end | ||
|
||
def down do | ||
drop_if_exists index(:feed_segments, [:inserted_at]) | ||
end | ||
end |
25 changes: 25 additions & 0 deletions
25
server/priv/repo/migrations/20240725192709_add_dataplicity_id_to_feeds.exs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
defmodule Orcasite.Repo.Migrations.AddDataplicityIdToFeeds do | ||
@moduledoc """ | ||
Updates resources based on their most recent snapshots. | ||
This file was autogenerated with `mix ash_postgres.generate_migrations` | ||
""" | ||
|
||
use Ecto.Migration | ||
|
||
def up do | ||
alter table(:feeds) do | ||
add :dataplicity_id, :text | ||
end | ||
|
||
create index(:feeds, [:dataplicity_id]) | ||
end | ||
|
||
def down do | ||
drop_if_exists index(:feeds, [:dataplicity_id]) | ||
|
||
alter table(:feeds) do | ||
remove :dataplicity_id | ||
end | ||
end | ||
end |
Oops, something went wrong.