Files
component-system/priv/repo/migrations/20250914164314_drop_qr_code_old_column.exs
2025-09-14 18:52:24 +02:00

19 lines
495 B
Elixir

defmodule ComponentsElixir.Repo.Migrations.DropQrCodeOldColumn do
use Ecto.Migration
def up do
# Drop the qr_code_old column since we've fully migrated to AprilTags
alter table(:storage_locations) do
remove :qr_code_old
end
end
def down do
# If we need to rollback, re-add the qr_code_old column
# Note: This will not restore the original data
alter table(:storage_locations) do
add :qr_code_old, :string, null: false, default: ""
end
end
end