Packages

Ecto auto migration library. It allows to generate and run migrations for initial and update migrations.

Current section

Files

Jump to
ecto_migrate lib ecto migration system_table.ex
Raw

lib/ecto/migration/system_table.ex

defmodule Ecto.Migration.SystemTable.Index.Migration do
use Ecto.Migration
def up do
create table(:ecto_auto_migration_index) do
add :tablename, :string
add :index, :string
add :name, :string
add :concurrently
add :unique, :boolean
add :using, :string
end
end
end
defmodule Ecto.Migration.SystemTable.Index do
use Ecto.Model
@primary_key {:tablename, :string, []}
schema "ecto_auto_migration_index" do
field :index, :string
field :name, :string
field :concurrently, :boolean
field :unique, :boolean
field :using, :string
end
end
defmodule Ecto.Migration.SystemTable.Migration do
use Ecto.Migration
def up do
create table(:ecto_auto_migration) do
add :tablename, :string
add :metainfo, :string
end
end
end
defmodule Ecto.Migration.SystemTable do
use Ecto.Model
@primary_key {:tablename, :string, []}
schema "ecto_auto_migration" do
field :metainfo, :string
end
end