From eac793becbac0cde6bc7c73dc221a54e0d334b30 Mon Sep 17 00:00:00 2001 From: luorijun Date: Sat, 20 Dec 2025 15:48:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20sql=20=E8=84=9A=E6=9C=AC?= =?UTF-8?q?=EF=BC=8C=E6=8E=92=E9=99=A4=E6=97=A0=E5=85=B3=E5=A1=AB=E5=85=85?= =?UTF-8?q?=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose.yaml | 2 +- scripts/sql/fill.sql | 12 ++++++++++++ scripts/sql/init.sql | 13 ------------- 3 files changed, 13 insertions(+), 14 deletions(-) create mode 100644 scripts/sql/fill.sql diff --git a/docker-compose.yaml b/docker-compose.yaml index 4ca10a7..e2032a6 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,4 +1,4 @@ -name: lanhu +name: lanhu-platform services: postgres: diff --git a/scripts/sql/fill.sql b/scripts/sql/fill.sql new file mode 100644 index 0000000..4ec1a38 --- /dev/null +++ b/scripts/sql/fill.sql @@ -0,0 +1,12 @@ +-- ==================== +-- region 填充数据 +-- ==================== + +insert into client ( + client_id, client_secret, redirect_uri, spec, name, type +) +values ( + 'web', '$2a$10$Ss12mXQgpYyo1CKIZ3URouDm.Lc2KcYJzsvEK2PTIXlv6fHQht45a', '', 3, 'web', 1 +); + +-- endregion diff --git a/scripts/sql/init.sql b/scripts/sql/init.sql index 4700451..6224dba 100644 --- a/scripts/sql/init.sql +++ b/scripts/sql/init.sql @@ -1059,16 +1059,3 @@ alter table coupon add constraint fk_coupon_user_id foreign key (user_id) references "user" (id) on delete cascade; -- endregion - --- ==================== --- region 填充数据 --- ==================== - -insert into client ( - client_id, client_secret, redirect_uri, spec, name, type -) -values ( - 'web', '$2a$10$Ss12mXQgpYyo1CKIZ3URouDm.Lc2KcYJzsvEK2PTIXlv6fHQht45a', '', 3, 'web', 1 -); - --- endregion