lib/event_sourcery/postgres/schema.rb in event_sourcery-postgres-0.8.0 vs lib/event_sourcery/postgres/schema.rb in event_sourcery-postgres-0.8.1
- old
+ new
@@ -51,10 +51,10 @@
# @param db the Postgres database to use
# @param table_name the name of the aggregates table
def create_aggregates(db: EventSourcery::Postgres.config.event_store_database,
table_name: EventSourcery::Postgres.config.aggregates_table_name)
db.create_table(table_name) do
- primary_key :aggregate_id, :uuid
+ uuid :aggregate_id, primary_key: true
column :version, :bigint, default: 1
end
end
# Create the 'create or update' functions.