1 defmodule Pleroma.Repo.Migrations.CreateDataMigrations do
5 create_if_not_exists table(:data_migrations) do
6 add(:name, :string, null: false)
7 add(:state, :integer, default: 1)
8 add(:feature_lock, :boolean, default: false)
9 add(:params, :map, default: %{})
10 add(:data, :map, default: %{})
15 create_if_not_exists(unique_index(:data_migrations, [:name]))