[PATCH 5/5] db: Add testcase for the db migration.