Add predicted_media_filepath to media items table
This commit is contained in:
parent
ae7347e3cf
commit
785be6cced
3 changed files with 11 additions and 0 deletions
|
|
@ -31,6 +31,7 @@ defmodule Pinchflat.Media.MediaItem do
|
|||
:uploaded_at,
|
||||
:upload_date_index,
|
||||
:duration_seconds,
|
||||
:predicted_media_filepath,
|
||||
# these fields are captured only on download
|
||||
:media_downloaded_at,
|
||||
:media_filepath,
|
||||
|
|
@ -76,6 +77,7 @@ defmodule Pinchflat.Media.MediaItem do
|
|||
field :duration_seconds, :integer
|
||||
field :playlist_index, :integer, default: 0
|
||||
|
||||
field :predicted_media_filepath, :string
|
||||
field :media_filepath, :string
|
||||
field :media_size_bytes, :integer
|
||||
field :thumbnail_filepath, :string
|
||||
|
|
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 433 KiB After Width: | Height: | Size: 449 KiB |
|
|
@ -0,0 +1,9 @@
|
|||
defmodule Pinchflat.Repo.Migrations.AddPredictedMediaFilepathToMediaItems do
|
||||
use Ecto.Migration
|
||||
|
||||
def change do
|
||||
alter table(:media_items) do
|
||||
add :predicted_media_filepath, :string
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
Reference in a new issue