2026-02-18 21:23:15 +00:00
|
|
|
defmodule Berrypod.Repo.Migrations.AddImageMetadataAndOban do
|
2026-01-21 22:08:19 +00:00
|
|
|
use Ecto.Migration
|
|
|
|
|
|
|
|
|
|
def change do
|
|
|
|
|
alter table(:images) do
|
|
|
|
|
add :source_width, :integer
|
|
|
|
|
add :source_height, :integer
|
|
|
|
|
add :variants_status, :string, default: "pending"
|
|
|
|
|
|
|
|
|
|
remove :thumbnail_data
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
Oban.Migration.up(version: 12)
|
|
|
|
|
end
|
|
|
|
|
end
|