From 15feda52f6052a5278062ba195e68a642a82909c Mon Sep 17 00:00:00 2001 From: "Captain.B" Date: Tue, 16 Mar 2021 16:41:38 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=80=A7=E8=83=BD=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BC=BA=E5=B0=91sql=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/src/main/resources/db/migration/V78__v1.8_release.sql | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/src/main/resources/db/migration/V78__v1.8_release.sql b/backend/src/main/resources/db/migration/V78__v1.8_release.sql index c18df38be6..eb9441699c 100644 --- a/backend/src/main/resources/db/migration/V78__v1.8_release.sql +++ b/backend/src/main/resources/db/migration/V78__v1.8_release.sql @@ -147,6 +147,9 @@ alter table schedule drop column custom_data; -- add sort column alter table load_test_file add sort int default 0; +alter table file_metadata + add project_id VARCHAR(50) null; + UPDATE file_metadata JOIN (SELECT file_id, project_id FROM load_test_file JOIN load_test ON test_id = load_test.id) temp ON file_id = file_metadata.id