diff --git a/modules/core/src/main/resources/db/create/db2/job.sql b/modules/core/src/main/resources/db/create/db2/job.sql index 4efd4676..0d6d5874 100644 --- a/modules/core/src/main/resources/db/create/db2/job.sql +++ b/modules/core/src/main/resources/db/create/db2/job.sql @@ -1,17 +1,5 @@ -- tables_db2_v95.sql -DROP TABLE ${_prefix}job_FIRED_TRIGGERS; -DROP TABLE ${_prefix}job_PAUSED_TRIGGER_GRPS; -DROP TABLE ${_prefix}job_SCHEDULER_STATE; -DROP TABLE ${_prefix}job_LOCKS; -DROP TABLE ${_prefix}job_SIMPLE_TRIGGERS; -DROP TABLE ${_prefix}job_SIMPROP_TRIGGERS; -DROP TABLE ${_prefix}job_CRON_TRIGGERS; -DROP TABLE ${_prefix}job_TRIGGERS; -DROP TABLE ${_prefix}job_JOB_DETAILS; -DROP TABLE ${_prefix}job_CALENDARS; -DROP TABLE ${_prefix}job_BLOB_TRIGGERS; - create table ${_prefix}job_job_details( sched_name varchar(120) not null, job_name varchar(80) not null, diff --git a/web/bin/init-data.bat b/web/bin/init-data.bat index f4fd14db..36f2cffa 100644 --- a/web/bin/init-data.bat +++ b/web/bin/init-data.bat @@ -11,6 +11,8 @@ echo [ echo. echo [信息] 在 v4.2 版本以后,官方初始化数据库是比较安全的,官方代码中不会包含任何删除数据表及数据的脚本。 echo. +echo [信息] 如果你是升级到 v4.2 的版本,无法排除你是否升级完整,为安全期间,还是建议先备份数据库后再操作。 +echo. pause %~d0 diff --git a/web/bin/init-data.sh b/web/bin/init-data.sh index e103ac92..4a04dc46 100644 --- a/web/bin/init-data.sh +++ b/web/bin/init-data.sh @@ -12,6 +12,8 @@ echo "[淇℃伅] 鏈搷浣滀富瑕佺敤浜庨娆″畨瑁 JeeSite 鎴栧悗瀹夎 Module 鐨 echo "" echo "[淇℃伅] 鍦 v4.2 鐗堟湰浠ュ悗锛屽畼鏂瑰垵濮嬪寲鏁版嵁搴撴槸姣旇緝瀹夊叏鐨勶紝瀹樻柟浠g爜涓笉浼氬寘鍚换浣曞垹闄ゆ暟鎹〃鍙婃暟鎹殑鑴氭湰銆" echo "" +echo "[淇℃伅] 濡傛灉浣犳槸鍗囩骇鍒 v4.2 鐨勭増鏈紝鏃犳硶鎺掗櫎浣犳槸鍚﹀崌绾у畬鏁达紝涓哄畨鍏ㄦ湡闂达紝杩樻槸寤鸿鍏堝浠芥暟鎹簱鍚庡啀鎿嶄綔銆" +echo "" read -s -n1 -p "璇锋寜浠绘剰閿户缁 ... " cd .. diff --git a/web/src/main/resources/db/create/h2/test.sql b/web/src/main/resources/db/create/h2/test.sql index 9cb282d9..b44c94f5 100644 --- a/web/src/main/resources/db/create/h2/test.sql +++ b/web/src/main/resources/db/create/h2/test.sql @@ -1,12 +1,4 @@ -/* Drop Tables */ - -DROP TABLE test_data; -DROP TABLE test_data_child; -DROP TABLE test_tree; - - - /* Create Tables */ diff --git a/web/src/main/resources/db/create/mssql/test.sql b/web/src/main/resources/db/create/mssql/test.sql index aa0f6af7..4b48c1f4 100644 --- a/web/src/main/resources/db/create/mssql/test.sql +++ b/web/src/main/resources/db/create/mssql/test.sql @@ -1,12 +1,4 @@ -/* Drop Tables */ - -IF OBJECT_ID('[test_data]') IS NOT NULL DROP TABLE [test_data]; -IF OBJECT_ID('[test_data_child]') IS NOT NULL DROP TABLE [test_data_child]; -IF OBJECT_ID('[test_tree]') IS NOT NULL DROP TABLE [test_tree]; - - - /* Create Tables */ diff --git a/web/src/main/resources/db/create/mysql/test.sql b/web/src/main/resources/db/create/mysql/test.sql index 0b6b2234..3638aa1d 100644 --- a/web/src/main/resources/db/create/mysql/test.sql +++ b/web/src/main/resources/db/create/mysql/test.sql @@ -1,13 +1,5 @@ SET SESSION FOREIGN_KEY_CHECKS=0; -/* Drop Tables */ - -DROP TABLE IF EXISTS test_data; -DROP TABLE IF EXISTS test_data_child; -DROP TABLE IF EXISTS test_tree; - - - /* Create Tables */ diff --git a/web/src/main/resources/db/create/oracle/test.sql b/web/src/main/resources/db/create/oracle/test.sql index 7620cd95..165e7a89 100644 --- a/web/src/main/resources/db/create/oracle/test.sql +++ b/web/src/main/resources/db/create/oracle/test.sql @@ -1,12 +1,4 @@ -/* Drop Tables */ - -DROP TABLE test_data CASCADE CONSTRAINTS; -DROP TABLE test_data_child CASCADE CONSTRAINTS; -DROP TABLE test_tree CASCADE CONSTRAINTS; - - - /* Create Tables */ diff --git a/web/src/main/resources/db/create/postgresql/test.sql b/web/src/main/resources/db/create/postgresql/test.sql index dc02a51f..165fb09f 100644 --- a/web/src/main/resources/db/create/postgresql/test.sql +++ b/web/src/main/resources/db/create/postgresql/test.sql @@ -1,12 +1,4 @@ -/* Drop Tables */ - -DROP TABLE IF EXISTS test_data; -DROP TABLE IF EXISTS test_data_child; -DROP TABLE IF EXISTS test_tree; - - - /* Create Tables */