From 5c6451f6aa57b098d3000b0cbe51931f33ea6447 Mon Sep 17 00:00:00 2001 From: zheng decan Date: Sun, 12 Feb 2023 21:02:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20PostgreSQL=E7=9A=84SQL=E8=84=9A=E6=9C=AC?= =?UTF-8?q?=E5=9C=A8=E9=9D=9E=E5=A4=9A=E7=A7=9F=E6=88=B7=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=E4=B8=8B=E9=83=A8=E4=BB=BD=E8=A1=A8tanant=5Fid=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E5=80=BC=E7=BC=BA=E5=A4=B1=E9=80=A0=E6=88=90=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sql/postgresql/ruoyi-vue-pro.sql | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sql/postgresql/ruoyi-vue-pro.sql b/sql/postgresql/ruoyi-vue-pro.sql index c16a51f75..6ce36cbd7 100644 --- a/sql/postgresql/ruoyi-vue-pro.sql +++ b/sql/postgresql/ruoyi-vue-pro.sql @@ -2493,7 +2493,7 @@ CREATE TABLE "system_login_log" ( "id" int8 NOT NULL, "log_type" int8 NOT NULL, "trace_id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL, - "user_id" int8 NOT NULL, + "user_id" int8 NOT NULL DEFAULT 0, "user_type" int2 NOT NULL, "username" varchar(50) COLLATE "pg_catalog"."default" NOT NULL, "result" int2 NOT NULL, @@ -2866,7 +2866,7 @@ CREATE TABLE "system_oauth2_access_token" ( "updater" varchar(64) COLLATE "pg_catalog"."default", "update_time" timestamp(6) NOT NULL, "deleted" int2 NOT NULL DEFAULT 0, - "tenant_id" int8 NOT NULL, + "tenant_id" int8 NOT NULL DEFAULT 0, "scopes" varchar(255) COLLATE "pg_catalog"."default" DEFAULT ''::character varying ) ; @@ -2909,7 +2909,7 @@ CREATE TABLE "system_oauth2_approve" ( "updater" varchar(64) COLLATE "pg_catalog"."default", "update_time" timestamp(6) NOT NULL, "deleted" int2 NOT NULL DEFAULT 0, - "tenant_id" int8 NOT NULL + "tenant_id" int8 NOT NULL DEFAULT 0 ) ; COMMENT ON COLUMN "system_oauth2_approve"."id" IS '编号'; @@ -3011,7 +3011,7 @@ CREATE TABLE "system_oauth2_code" ( "updater" varchar(64) COLLATE "pg_catalog"."default", "update_time" timestamp(6) NOT NULL, "deleted" int2 NOT NULL DEFAULT 0, - "tenant_id" int8 NOT NULL + "tenant_id" int8 NOT NULL DEFAULT 0 ) ; COMMENT ON COLUMN "system_oauth2_code"."id" IS '编号'; @@ -3053,7 +3053,7 @@ CREATE TABLE "system_oauth2_refresh_token" ( "updater" varchar(64) COLLATE "pg_catalog"."default", "update_time" timestamp(6) NOT NULL, "deleted" int2 NOT NULL DEFAULT 0, - "tenant_id" int8 NOT NULL, + "tenant_id" int8 NOT NULL DEFAULT 0, "scopes" varchar(255) COLLATE "pg_catalog"."default" DEFAULT ''::character varying ) ;