docs/docs/en/ops-management/migration-manager/index.md
The Migration Manager helps you transfer application configurations from one environment (e.g., Staging) to another (e.g., PROD). Its main focus is on migrating "application configurations."
Key Difference:
The Migration Manager depends on the Backup Manager. Make sure that the Backup Manager plugin is already installed and activated.
The Migration Manager transfers tables and data from the primary database based on specified migration rules. Note that it does not migrate data from external databases or sub-applications.
Migration Manager supports five built-in rules:
Additional notes:
Configure migration rules
Enable independent rules
Select independent rules and the tables to be processed by the current independent rules
Application environment variable check (learn more about Environment Variables)
If the values of DB_UNDERSCORED, USE_DB_SCHEMA_IN_SUBAPP, DB_TABLE_PREFIX, DB_SCHEMA, or COLLECTION_MANAGER_SCHEMA in the .env file are inconsistent, a pop-up dialog will appear indicating that the migration cannot continue.
If any dynamically configured environment variables or secrets are missing, a pop-up will prompt the user to enter the required environment variables or secrets here, and then continue.
Application plugin check. If required plugins are missing in the current environment, a pop-up notification will appear. You can also choose to continue the migration anyway.
After the migration is completed, migration log files are saved on the server. You can view them online or download them.
When viewing the migration logs online, you can also download the SQL statements executed during the migration of the data schema.
Click the Process button to view the completed migration execution process.
storage FolderThe Migration Manager primarily handles database records. Some data in the storage folder (like logs, backup history, or request logs) are not automatically moved.
storage directory.Before any migration runs, the system creates an automatic backup.
If the migration fails but the core version remains the same, use the Backup Manager to restore the automatic backup created right before the migration.
If you need to revert to a stable state after an upgrade or corruption:
To ensure zero or minimal downtime and the highest safety, use a two-environment approach:
NocoBase currently does not support zero-downtime migrations. To avoid data modification during the backup and migration process: