spatie / laravel-event-projector

Event sourcing for Artisans 📽

Home Page:https://docs.spatie.be/laravel-event-projector

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

What happens if I accidentally use rerun with some accounts already existing?

mathewparet opened this issue · comments

Probably nothing good :D

It depends on your app really. If you rerun a CreateAccount event some how, you'll probably run into an integrity constraint in your database. If you update an account twice, the values might not be correct anymore.

Our package will never rerun things by itself though, the only thing I can say here is handle the artisan commands with care on production.