Entendu/priv/repo/migrations/20211130021804_add_filename...

14 lines
305 B
Elixir

defmodule Entendu.Repo.Migrations.AddFilenameToLinks do
use Ecto.Migration
def change do
alter table(:links) do
remove_if_exists(:content, :string)
add :filename, :string
add :filetype, :string
add :text_content, :string
add :file_content, :string
end
end
end