2026-02-18 21:23:15 +00:00
|
|
|
defmodule Berrypod.Repo.Migrations.CreateSettings do
|
2025-12-30 21:35:52 +00:00
|
|
|
use Ecto.Migration
|
|
|
|
|
|
|
|
|
|
def change do
|
|
|
|
|
create table(:settings, primary_key: false) do
|
|
|
|
|
add :id, :binary_id, primary_key: true
|
|
|
|
|
add :key, :string, null: false
|
|
|
|
|
add :value, :text, null: false
|
|
|
|
|
add :value_type, :string, null: false, default: "string"
|
|
|
|
|
|
|
|
|
|
timestamps(type: :utc_datetime)
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
create unique_index(:settings, [:key])
|
|
|
|
|
end
|
|
|
|
|
end
|