mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-26 17:59:26 +00:00
0c667b13ae
* CSV * PDF (requires Python dependency `weasyprint`) * ODS (requires Python dependency `pyexcel_ods3`) Signed-off-by: Thomas Citharel <tcit@tcit.fr>
18 lines
388 B
Elixir
18 lines
388 B
Elixir
defmodule Mobilizon.Repo.Migrations.CreateExports do
|
|
use Ecto.Migration
|
|
|
|
def change do
|
|
create table(:exports) do
|
|
add(:file_path, :string)
|
|
add(:file_size, :integer)
|
|
add(:file_name, :string)
|
|
add(:type, :string)
|
|
add(:reference, :string)
|
|
add(:format, :string)
|
|
|
|
timestamps()
|
|
end
|
|
|
|
create(unique_index(:exports, [:file_path]))
|
|
end
|
|
end
|