it is changed in compile time
we can't change module attributes and endpoint settings in runtime
This commit is contained in:
parent
b7fc722a2e
commit
c2ca1f22a2
32 changed files with 940 additions and 52 deletions
13
priv/repo/migrations/20190518032627_create_config.exs
Normal file
13
priv/repo/migrations/20190518032627_create_config.exs
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
defmodule Pleroma.Repo.Migrations.CreateConfig do
|
||||
use Ecto.Migration
|
||||
|
||||
def change do
|
||||
create table(:config) do
|
||||
add(:key, :string)
|
||||
add(:value, :binary)
|
||||
timestamps()
|
||||
end
|
||||
|
||||
create(unique_index(:config, :key))
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue