docs: 📝 foundkey migration apply patch correctly
This commit is contained in:
parent
ca58388a98
commit
ad3fb52dd8
1 changed files with 1 additions and 1 deletions
|
@ -81,9 +81,9 @@ NODE_ENV=production pnpm run migrate
|
||||||
## FoundKey
|
## FoundKey
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
cd packages/backend
|
|
||||||
wget -O fk.patch https://codeberg.org/calckey/calckey/raw/branch/develop/docs/fk.patch
|
wget -O fk.patch https://codeberg.org/calckey/calckey/raw/branch/develop/docs/fk.patch
|
||||||
git apply fk.patch
|
git apply fk.patch
|
||||||
|
cd packages/backend
|
||||||
|
|
||||||
LINE_NUM="$(npx typeorm migration:show -d ormconfig.js | grep -n uniformThemecolor1652859567549 | cut -d ':' -f 1)"
|
LINE_NUM="$(npx typeorm migration:show -d ormconfig.js | grep -n uniformThemecolor1652859567549 | cut -d ':' -f 1)"
|
||||||
NUM_MIGRATIONS="$(npx typeorm migration:show -d ormconfig.js | tail -n+"$LINE_NUM" | grep '\[X\]' | wc -l)"
|
NUM_MIGRATIONS="$(npx typeorm migration:show -d ormconfig.js | tail -n+"$LINE_NUM" | grep '\[X\]' | wc -l)"
|
||||||
|
|
Loading…
Reference in a new issue