Skip to content

Commit

Permalink
[Improve] ddl improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
benjobs committed Oct 26, 2023
1 parent 0a314c5 commit 68d7865
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

use streampark;

set names utf8mb4;
set foreign_key_checks = 0;

alter table `t_flink_app`
add column `dependency` text collate utf8mb4_general_ci default null after `main_class`;

set foreign_key_checks = 1;
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

alter table "public"."t_flink_app"
add column "dependency" text collate "pg_catalog"."default";
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,9 @@ public class Application implements Serializable {

private String mainClass;

@TableField(updateStrategy = FieldStrategy.IGNORED)
private String dependency;

private Date startTime;

@TableField(updateStrategy = FieldStrategy.IGNORED)
Expand Down Expand Up @@ -220,7 +223,6 @@ public class Application implements Serializable {
/** running job */
private transient JobsOverview.Task overview;

private String dependency;
private transient Long sqlId;
private transient String flinkSql;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@
<template #args="{ model }">
<ProgramArgs
ref="programArgRef"
v-if="model.args != null && true"
v-if="model.args != null"
v-model:value="model.args"
:suggestions="suggestions"
@preview="(value) => openReviewDrawer(true, { value, suggestions })"
Expand Down

0 comments on commit 68d7865

Please sign in to comment.