31 lines
459 B
Markdown
31 lines
459 B
Markdown
|
# migrations
|
||
|
|
||
|
tables
|
||
|
|
||
|
actions_log
|
||
|
|
||
|
id
|
||
|
action name
|
||
|
action description
|
||
|
action trigger
|
||
|
|
||
|
db_lock
|
||
|
|
||
|
db_name
|
||
|
locked
|
||
|
|
||
|
|
||
|
Once started applications send grpc message with the following information
|
||
|
```
|
||
|
appVersion
|
||
|
databaseStructure[]
|
||
|
maps
|
||
|
```
|
||
|
|
||
|
|
||
|
1. App stated and send message to migrator
|
||
|
2. Migrator registered a new version in database actions_version and checks other versions
|
||
|
3. Migrator checks db structure and triggers actions (actions are version based)
|
||
|
4.
|
||
|
|