misskey-tools/gen-migrate

9 lines
184 B
Plaintext
Raw Normal View History

2020-08-04 14:38:26 +09:00
#!/bin/sh
if [ $# -ne 1 ]; then
echo "usage: $0 <migration-name>"
exit -1
fi
npx ts-node --project ./tsconfig.migration.json ./node_modules/typeorm/cli.js migration:generate -n $1