3 Star 8 Fork 1

yedajiang44 / GpsTerminalEmulator

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
migration.sh 614 Bytes
一键复制 编辑 原始数据 按行查看 历史
yedajiang44 提交于 2021-06-08 23:55 . standardization shell script
#!/bin/bash
while true; do
stty -icanon min 0 time 100
echo -n "是否执行迁移(yes or no)?"
read -r Arg
case $Arg in
Y | y | YES | yes)
break
;;
N | n | NO | no)
exit
;;
"") #Autocontinue
break ;;
esac
done
while true; do
stty -icanon min 0 time 100
echo -n "输入迁移名称"
read -r Arg
case $Arg in
"") ;;
*)
break
;;
esac
done
echo "正在添加迁移 $Arg"
cd src || exit
dotnet ef migrations add "$Arg" --startup-project Jt808TerminalEmulator.Api --project Jt808TerminalEmulator.Data
C#
1
https://gitee.com/yedajiang44/GpsTerminalEmulator.git
git@gitee.com:yedajiang44/GpsTerminalEmulator.git
yedajiang44
GpsTerminalEmulator
GpsTerminalEmulator
master

搜索帮助