mirror of
https://github.com/logos-messaging/logos-delivery.git
synced 2026-08-26 19:11:15 +00:00
chore: remove references to v2 (#1898)
* chore: remove references to v2 * fix: lingering rln-relay import path
This commit is contained in:
@@ -4,11 +4,11 @@ This tutorial explains the database migration process in nim-waku.
|
||||
# Contributors Guide
|
||||
## Database Migration Flow
|
||||
Nim-waku utilizes the built-in `user_version` variable that Sqlite provides for tracking the database versions.
|
||||
The [user_version](https://github.com/waku-org/nwaku/blob/master/waku/v2/waku_archive/driver/sqlite_driver/migrations.nim) MUST be bumped up for every update on the database e.g, table schema/title change.
|
||||
The [user_version](https://github.com/waku-org/nwaku/blob/master/waku/waku_archive/driver/sqlite_driver/migrations.nim) MUST be bumped up for every update on the database e.g, table schema/title change.
|
||||
Each update should be accompanied by a migration script to move the content of the old version of the database to the new version.
|
||||
The script MUST be added to the respective folder as explained in [Migration Folder Structure](#migration-folder-structure) with the proper naming as given in [ Migration Script Naming](#migration-file-naming).
|
||||
|
||||
The migration is invoked whenever the database `user_version` is behind the target [user_version](https://github.com/waku-org/nwaku/blob/master/waku/v2/waku_archive/driver/sqlite_driver/migrations.nim) indicated in the nim-waku application.
|
||||
The migration is invoked whenever the database `user_version` is behind the target [user_version](https://github.com/waku-org/nwaku/blob/master/waku/waku_archive/driver/sqlite_driver/migrations.nim) indicated in the nim-waku application.
|
||||
The respective migration scripts located in the [migrations folder](https://github.com/waku-org/nwaku/tree/master/migrations) will be executed to upgrade the database from its old version to the target version.
|
||||
|
||||
## Migration Folder Structure
|
||||
|
||||
Reference in New Issue
Block a user