From 87ca2adb3174d7539ce942cb2a293dd4b3e138ac Mon Sep 17 00:00:00 2001 From: dwusiq Date: Sun, 3 Mar 2024 20:02:48 +0800 Subject: [PATCH] update share data and close sql log --- src/main/resources/DB/3.sql | 3 +++ src/main/resources/application.yml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 src/main/resources/DB/3.sql diff --git a/src/main/resources/DB/3.sql b/src/main/resources/DB/3.sql new file mode 100644 index 00000000..cc7bdfa8 --- /dev/null +++ b/src/main/resources/DB/3.sql @@ -0,0 +1,3 @@ + + +UPDATE share SET twitter = REPLACE(twitter, '@@', '@') WHERE twitter LIKE '@@%'; \ No newline at end of file diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 3fc59170..b05f00d8 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -19,7 +19,7 @@ spring: hibernate: ddl-auto: update generate-ddl: true - show-sql: true + show-sql: false database-platform: org.hibernate.dialect.MySQL5Dialect mail: host: ${SMTP_SERVER:smtp.gmail.com}