Skip to content

Commit

Permalink
Use bigint for version and aggregate_version fields in the DB (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
fbergero authored and arpunk committed Jan 22, 2018
1 parent fd228b6 commit dfcf554
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions priv/chronik_repo/migrations/20180118142813_bigint_for_version.exs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
defmodule Chronik.Store.Adapters.Ecto.ChronikRepo.Migrations.BigintForVersion do
use Ecto.Migration

def change do
alter table(:aggregates) do
modify :snapshot_version, :bigint
end

alter table(:domain_events) do
modify :aggregate_version, :bigint
modify :version, :bigint
end
end
end

0 comments on commit dfcf554

Please sign in to comment.