* Add media profile presets (#85) * Added presets for output templates * Added presets for the entire media profile form * Append `-thumb` to thumbnails when downloading (#87) * Appended -thumb to thumbnails when downloading * Added code to compensate for yt-dlp bug * Squash all the commits from the other branch bc I broke things (#88)
14 lines
381 B
Elixir
14 lines
381 B
Elixir
defmodule Pinchflat.Repo.Migrations.CreateSourceMetadata do
|
|
use Ecto.Migration
|
|
|
|
def change do
|
|
create table(:source_metadata) do
|
|
add :metadata_filepath, :string, null: false
|
|
add :source_id, references(:sources, on_delete: :delete_all), null: false
|
|
|
|
timestamps(type: :utc_datetime)
|
|
end
|
|
|
|
create unique_index(:source_metadata, [:source_id])
|
|
end
|
|
end
|