9 lines
184 B
Bash
Executable File
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
|