Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,33 @@ services:
$repository: '@event_sourcing.profile_repository'
```

### Enable migrations

You can use doctrine migration to create and update the event store schema. For that you need to install the following package `doctrine/migrations`.
After it's installed you will have some new cli commands: `event-sourcing:migration:diff` and `event-sourcing:migration:migrate`. With these you can create new migrations files as a diff and execute them.
You can also change the namespace and the folder in the configuration.

```
patchlevel_event_sourcing:
migration:
namespace: EventSourcingMigrations
path: "%kernel.project_dir%/migrations"
```

## commands

### create database

```
bin/console event-sourcing:database:create
```

### drop database

```
bin/console event-sourcing:database:drop
```

### create schema

```
Expand Down