2
0
mirror of https://github.com/inventree/inventree-docs.git synced 2025-04-28 13:46:54 +00:00

Update migrate.md

This commit is contained in:
Oliver 2021-10-12 21:34:26 +11:00 committed by GitHub
parent 597558a2c7
commit c95ec9d47c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,6 +43,9 @@ This ensures that the required database tables exist, which must be the case bef
The new database should now be correctly initialized with the correct table structures requried to import the data. Run the following command to load the databased dump file into the new database. The new database should now be correctly initialized with the correct table structures requried to import the data. Run the following command to load the databased dump file into the new database.
!!! warning "Empty Database"
If the database is not *empty* (i.e. it contains data records) then the data import process will fail. If errors occur during the import process, run `invoke delete-data` to clear all existing data from the database.
``` ```
inv import-records -f data.json inv import-records -f data.json
``` ```