This is an automated email from the ASF dual-hosted git repository.

kerwin pushed a commit to branch 3.1.3-release
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git


The following commit(s) were added to refs/heads/3.1.3-release by this push:
     new 4d29460959 rename h2 and postgreSQL table t_ds_fav to t_ds_fav_task 
(#13333)
4d29460959 is described below

commit 4d294609593f21cdb4f5ef90875474238dbd37f2
Author: Tq <[email protected]>
AuthorDate: Wed Jan 4 14:59:47 2023 +0800

    rename h2 and postgreSQL table t_ds_fav to t_ds_fav_task (#13333)
---
 dolphinscheduler-dao/src/main/resources/sql/dolphinscheduler_h2.sql | 6 +++---
 .../src/main/resources/sql/dolphinscheduler_postgresql.sql          | 6 +++---
 .../sql/upgrade/3.1.3_schema/postgresql/dolphinscheduler_ddl.sql    | 1 +
 3 files changed, 7 insertions(+), 6 deletions(-)

diff --git 
a/dolphinscheduler-dao/src/main/resources/sql/dolphinscheduler_h2.sql 
b/dolphinscheduler-dao/src/main/resources/sql/dolphinscheduler_h2.sql
index 15e1d56cb2..19719ed9e9 100644
--- a/dolphinscheduler-dao/src/main/resources/sql/dolphinscheduler_h2.sql
+++ b/dolphinscheduler-dao/src/main/resources/sql/dolphinscheduler_h2.sql
@@ -1997,10 +1997,10 @@ INSERT INTO `t_ds_cluster`
 VALUES (100, 0, 'ds_null_k8s', '{"k8s":"ds_null_k8s"}', 'test', 1, '2021-03-03 
11:31:24.0', '2021-03-03 11:31:24.0');
 
 --
--- Table structure for t_ds_fav
+-- Table structure for t_ds_fav_task
 --
-DROP TABLE IF EXISTS t_ds_fav CASCADE;
-CREATE TABLE t_ds_fav
+DROP TABLE IF EXISTS t_ds_fav_task CASCADE;
+CREATE TABLE t_ds_fav_task
 (
     id        bigint(20) NOT NULL AUTO_INCREMENT,
     task_name varchar(64) NOT NULL,
diff --git 
a/dolphinscheduler-dao/src/main/resources/sql/dolphinscheduler_postgresql.sql 
b/dolphinscheduler-dao/src/main/resources/sql/dolphinscheduler_postgresql.sql
index cd7f5107a7..1929fc4d73 100644
--- 
a/dolphinscheduler-dao/src/main/resources/sql/dolphinscheduler_postgresql.sql
+++ 
b/dolphinscheduler-dao/src/main/resources/sql/dolphinscheduler_postgresql.sql
@@ -1953,11 +1953,11 @@ CREATE TABLE t_ds_cluster(
 );
 
 --
--- Table structure for t_ds_fav
+-- Table structure for t_ds_fav_task
 --
 
-DROP TABLE IF EXISTS t_ds_fav;
-CREATE TABLE t_ds_fav
+DROP TABLE IF EXISTS t_ds_fav_task;
+CREATE TABLE t_ds_fav_task
 (
     id        serial      NOT NULL,
     task_name varchar(64) NOT NULL,
diff --git 
a/dolphinscheduler-dao/src/main/resources/sql/upgrade/3.1.3_schema/postgresql/dolphinscheduler_ddl.sql
 
b/dolphinscheduler-dao/src/main/resources/sql/upgrade/3.1.3_schema/postgresql/dolphinscheduler_ddl.sql
index 4a14f326b9..854454ae05 100644
--- 
a/dolphinscheduler-dao/src/main/resources/sql/upgrade/3.1.3_schema/postgresql/dolphinscheduler_ddl.sql
+++ 
b/dolphinscheduler-dao/src/main/resources/sql/upgrade/3.1.3_schema/postgresql/dolphinscheduler_ddl.sql
@@ -14,3 +14,4 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
 */
+ALTER TABLE t_ds_fav RENAME TO t_ds_fav_task;
\ No newline at end of file

Reply via email to