misskey-tools/gen-migrate
2020-08-04 14:38:26 +09:00

9 lines
184 B
Bash
Executable File

#!/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