Packages
Mishka Installer is a system plugin manager and run time installer for elixir.
Current section
Files
Jump to
Current section
Files
priv/activity_migration.exs.eex
defmodule <%= module_prefix %>.Repo.Migrations.CreateMishkaInistrallerActivityTable do
use Ecto.Migration
def change do
create table(:activities, primary_key: false<%= if not is_nil(db_prefix), do: ", prefix: \"#{db_prefix}\"" %>) do
add(:id, :uuid, primary_key: true)
add(:type, :integer, null: false)
add(:action, :integer, null: false)
add(:section, :integer, null: false, null: false)
add(:section_id, :uuid, primary_key: false, null: true)
add(:priority, :integer, null: false)
add(:status, :integer, null: false)
add(:extra, :map, null: true)
timestamps()
end
end
end