Skip to content

Commit 7bed90c

Browse files
author
Jeroen de Graaf
committed
Add schema sql to installation docs
1 parent d767afa commit 7bed90c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,16 @@ When all prerequisites are met, it's time to install the bundle package itself:
9393
composer require gember/event-sourcing-symfony-bundle
9494
```
9595

96+
## Database
97+
In order to persist all domain events in database, a running SQL database is needed.
98+
The event store requires two tables. Schema is available in either raw SQL or in a migration file format:
99+
100+
Raw SQL schema: https://github.com/GemberPHP/rdbms-event-store-doctrine-dbal/blob/main/resources/schema.sql
101+
102+
Migrations:
103+
- Doctrine migrations: https://github.com/GemberPHP/rdbms-event-store-doctrine-dbal/blob/main/resources/migrations/doctrine
104+
- Phinx migrations: https://github.com/GemberPHP/rdbms-event-store-doctrine-dbal/tree/main/resources/migrations/phinx
105+
96106
## Good to go!
97107
Check the main package [gember/event-sourcing](https://github.com/GemberPHP/event-sourcing) or
98108
the demo application [gember/example-event-sourcing-dcb](https://github.com/GemberPHP/example-event-sourcing-dcb) for examples.

0 commit comments

Comments
 (0)