From db30721f5ed6a2e07d2e02b59ce27e3f486d7309 Mon Sep 17 00:00:00 2001 From: lgcareer <18610854716@163.com> Date: Wed, 1 Apr 2020 11:56:28 +0800 Subject: [PATCH] init full_name in dml of version 1.2.2 (#2341) Co-authored-by: dailidong --- sql/upgrade/1.2.2_schema/mysql/dolphinscheduler_dml.sql | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sql/upgrade/1.2.2_schema/mysql/dolphinscheduler_dml.sql b/sql/upgrade/1.2.2_schema/mysql/dolphinscheduler_dml.sql index 38964cc551..7fb3bc2fd5 100644 --- a/sql/upgrade/1.2.2_schema/mysql/dolphinscheduler_dml.sql +++ b/sql/upgrade/1.2.2_schema/mysql/dolphinscheduler_dml.sql @@ -13,4 +13,8 @@ * 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. -*/ \ No newline at end of file +*/ +SET sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY','')); +SET FOREIGN_KEY_CHECKS=0; +UPDATE t_ds_resources SET pid=-1,is_directory=false WHERE pid IS NULL; +UPDATE t_ds_resources SET full_name = concat('/',alias) WHERE pid=-1 and full_name IS NULL; \ No newline at end of file