[Enhancement] Filter media based on min and/or max duration (#356)
* Added duration limits to source model * Added duration limits to source form * Added validation for min/max amounts * Added duration checks to pending query * Moved min/max filters up in source form * Removed debugger
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 449 KiB After Width: | Height: | Size: 436 KiB |
@@ -0,0 +1,10 @@
|
||||
defmodule Pinchflat.Repo.Migrations.AddDurationLimitsToSources do
|
||||
use Ecto.Migration
|
||||
|
||||
def change do
|
||||
alter table(:sources) do
|
||||
add :min_duration_seconds, :integer
|
||||
add :max_duration_seconds, :integer
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user