From faa10147d66ec6a5d5221445af9028fbe56f9c07 Mon Sep 17 00:00:00 2001 From: BlankKelly Date: Thu, 5 Apr 2018 23:21:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=88=9D=E5=A7=8B=E5=8C=96sh?= =?UTF-8?q?ell=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/bin/init-data.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 web/bin/init-data.sh diff --git a/web/bin/init-data.sh b/web/bin/init-data.sh new file mode 100644 index 000000000..b46f2dee7 --- /dev/null +++ b/web/bin/init-data.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +echo "[信息] 初始化数据库,请谨慎操作。\n" +read -s -n1 -p "按任意键继续 ... " +echo "\n[信息] 此操作会清空您的现有数据表,并恢复初始状态。\n" +read -s -n1 -p "按任意键继续 ... " +echo "\n[信息] 确认继续吗?否则请关闭窗口。\n" +read -s -n1 -p "按任意键继续 ... " + +cd .. +mvn test -Dtest=com.jeesite.test.InitCoreData,com.jeesite.test.InitGenData -- Gitee