envato / event_sourcery

A library for building event sourced applications in Ruby
MIT License
84 stars 10 forks source link

Add an event uuid to schema and support to write it #60

Closed stevehodgkiss closed 8 years ago

stevehodgkiss commented 8 years ago

This will be used to uniquely identify events when mapping new streams, and also to implement idempotent writes in the future.

stevehodgkiss commented 8 years ago

This is a breaking change. In order to update to this version a uuid column needs adding to events with this sql:

CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
ALTER TABLE events ADD COLUMN uuid uuid default uuid_generate_v4() not null;

@mjward @orien @macosgrove @createdbypete