Home / Companies / Nhost / Blog / Post Details
Content Deep Dive

Migrate from Nhost v1 to v2

Blog post from Nhost

Post Details
Company
Date Published
Author
Johan Eliasson
Word Count
447
Language
English
Hacker News Points
-
Summary

Migrating a project from Nhost v1 to Nhost v2 involves several technical steps, including updating database schema and Hasura metadata, which require both automated and manual adjustments. The process starts with creating a new Nhost v2 app locally using the Nhost CLI and involves altering configuration files, exporting current migrations and metadata, and making specific changes to migration scripts and metadata files, such as modifying functions and deleting certain tables and references. After starting the updated Nhost app locally and ensuring that the new metadata is applied, users need to delete local migrations and metadata before updating the configuration once more to pull the correct migrations and metadata from the local instance. The final step in the migration process is transferring data from the v1 to the v2 project, which can be facilitated by using TransferGraph, a community tool designed to assist with data transfer tasks.