From 7d3158589ea5154add3ef761c919527c71fdebe8 Mon Sep 17 00:00:00 2001 From: lihongjie0209 Date: Wed, 21 Aug 2024 21:05:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=BF=81=E7=A7=BB=E8=84=9A?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/db/migration/V51__product.sql | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 src/main/resources/db/migration/V51__product.sql diff --git a/src/main/resources/db/migration/V51__product.sql b/src/main/resources/db/migration/V51__product.sql new file mode 100644 index 00000000..09b77f7a --- /dev/null +++ b/src/main/resources/db/migration/V51__product.sql @@ -0,0 +1,3 @@ +update t_coal_washing_daily_analysis a +set product_id = (select id from t_product p where p.name = a.name) +where a.product_id is null; \ No newline at end of file