notes/vscode-notes/migrations.md

31 lines
459 B
Markdown
Raw Normal View History

2021-08-01 09:13:43 +00:00
# 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.