Skip to content

Commit

Permalink
Update UPGRADING.md
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze authored Sep 20, 2019
1 parent d99f90a commit de3a115
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions UPGRADING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,11 @@

Because there are many breaking changes we cannot give you a waterproof list of steps to provide. There are many edge cases this guide does not cover. We accept PRs to improve this guide.

## From laravel-event-projector v3 to v1
## From laravel-event-projector v3 to v1 of laravel-event-sourcing

The only change in this version is the naming change from `laravel-event-projector` to `laravel-event-sourcing`

To upgrade from v3 of `laravel-event-projector` you have to perform these steps:
1. rename `config/laravel-event-projector.php` to `config/laravel-event-sourcing.php`
2. `laravel-event-projector:v3` to `laravel-event-sourcing:v1` and run `composer update`
3. The namespace has changed, so you need to replace `Spatie\EventSourcing` by `Spatie\EventSourcing` in your entire project

## From v2 to v3

- Add a `stored_event_repository` config key with the following value: `\Spatie\EventSourcing\EloquentStoredEventRepository::class`
- If you're using a different model for event storage:
1. Make sure the model extends `\Spatie\EventSourcing\Models\EloquentStoredEvent`


## From v1 to v2

- Add a nullable `aggregate_uuid` field in the `stored_events` table
- Delete the `projector_statuses` table
- Remove all options in the config file not present in the config file that ships with v2
- In v1 streams were used to track if events came in the right order. All support for event streams has been removed. If for your projectors the order of events is imports, use a queued projector.
- v1 tracked which events were already processed by a given event handler. In v2 all functionality around projector statusses is removed. It's now your own resposibility that you give all projectors the right events.

0 comments on commit de3a115

Please sign in to comment.