You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.
Expect Application class to expose a method called registerMigrations in order to allow applications to define migrations to be run along with the framework migrations.
Also, each module should be able to define its own migrations through the migrations attribute in the module class. By doing so, all chain related migrations should be moved to ChainModule class and all p2p related migrations should be moved to NetworkModule class.
Migrations should be handled by the Controller which will [before loading the modules] get all registered migrations files, order them by date/time and execute the ones not yet executed.
The migration name convention should follow the convention formerly used by Lisk Core: yyyyMMddHHmmss_name_of_migration.sql
lsilvs
changed the title
Add capability to register database migration from the application layer
Add capability to register database migration from the application/module layer
May 17, 2019
Expected behavior
Expect
Application
class to expose a method calledregisterMigrations
in order to allow applications to define migrations to be run along with the framework migrations.Also, each module should be able to define its own migrations through the
migrations
attribute in the module class. By doing so, all chain related migrations should be moved toChainModule
class and all p2p related migrations should be moved toNetworkModule
class.Migrations should be handled by the
Controller
which will [before loading the modules] get all registered migrations files, order them by date/time and execute the ones not yet executed.The migration name convention should follow the convention formerly used by Lisk Core:
yyyyMMddHHmmss_name_of_migration.sql
Actual behavior
Migrations are handled by Chain Module
Parent
#3146
Which version(s) does this affect? (Environment, OS, etc...)
2.2.0
The text was updated successfully, but these errors were encountered: