diff --git a/docs/migrating.md b/docs/migrating.md index a44742508..b4078f097 100644 --- a/docs/migrating.md +++ b/docs/migrating.md @@ -21,10 +21,12 @@ LINE_NUM="$(npx typeorm migration:show -d ormconfig.js | grep -n nsfwDetection16 NUM_MIGRATIONS="$(npx typeorm migration:show -d ormconfig.js | tail -n+"$LINE_NUM" | grep '\[X\]' | nl)" for i in $(seq 1 $NUM_MIGRATIONS); do - npx typeorm migration:revert -d ormconfig.js + npx typeorm migration:revert -d ormconfig.js || continue done ``` +**Note:** TypeORM might hang when reverting a migration. If it says that the migration was reverted successfully, you can force close TypeORM using Ctrl-C. The script will continue until all of the migrations have been reverted. + ## Switching repositories To switch to the FoundKey repository, do the following in your Misskey install location: ```sh