修改文件表表结构

pull/2/head
jiangqiang 2022-07-08 08:44:09 +08:00
parent b741ed480b
commit 0ed3321719
4 changed files with 7 additions and 20 deletions

View File

@ -692,8 +692,7 @@ CREATE TABLE `infra_file` (
`name` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '', `name` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '',
`path` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '', `path` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '',
`url` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT ' URL', `url` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT ' URL',
`ext_name` varchar(63) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '', `type` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT 'MIME',
`mime_type` varchar(63) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT 'MIME',
`size` int NOT NULL COMMENT '', `size` int NOT NULL COMMENT '',
`creator` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '', `creator` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '',

View File

@ -878,8 +878,7 @@ CREATE TABLE "INFRA_FILE" (
"CONFIG_ID" NUMBER(20,0), "CONFIG_ID" NUMBER(20,0),
"PATH" NVARCHAR2(512), "PATH" NVARCHAR2(512),
"URL" NCLOB, "URL" NCLOB,
"EXT_NAME" NVARCHAR2(63), "TYPE" NVARCHAR2(64),
"MIME_TYPE" NVARCHAR2(63),
"SIZE" NUMBER(11,0) NOT NULL, "SIZE" NUMBER(11,0) NOT NULL,
"CREATOR" NVARCHAR2(64), "CREATOR" NVARCHAR2(64),
"CREATE_TIME" DATE NOT NULL, "CREATE_TIME" DATE NOT NULL,
@ -909,8 +908,7 @@ COMMENT ON COLUMN "INFRA_FILE"."ID" IS '文件编号';
COMMENT ON COLUMN "INFRA_FILE"."CONFIG_ID" IS ''; COMMENT ON COLUMN "INFRA_FILE"."CONFIG_ID" IS '';
COMMENT ON COLUMN "INFRA_FILE"."PATH" IS ''; COMMENT ON COLUMN "INFRA_FILE"."PATH" IS '';
COMMENT ON COLUMN "INFRA_FILE"."URL" IS ' URL'; COMMENT ON COLUMN "INFRA_FILE"."URL" IS ' URL';
COMMENT ON COLUMN "INFRA_FILE"."EXT_NAME" IS ''; COMMENT ON COLUMN "INFRA_FILE"."TYPE" IS 'MIME';
COMMENT ON COLUMN "INFRA_FILE"."MIME_TYPE" IS 'MIME';
COMMENT ON COLUMN "INFRA_FILE"."SIZE" IS ''; COMMENT ON COLUMN "INFRA_FILE"."SIZE" IS '';
COMMENT ON COLUMN "INFRA_FILE"."CREATOR" IS ''; COMMENT ON COLUMN "INFRA_FILE"."CREATOR" IS '';
COMMENT ON COLUMN "INFRA_FILE"."CREATE_TIME" IS ''; COMMENT ON COLUMN "INFRA_FILE"."CREATE_TIME" IS '';

View File

@ -1717,8 +1717,7 @@ CREATE TABLE "infra_file" (
"config_id" int8, "config_id" int8,
"path" varchar(512) COLLATE "pg_catalog"."default" NOT NULL, "path" varchar(512) COLLATE "pg_catalog"."default" NOT NULL,
"url" varchar(1024) COLLATE "pg_catalog"."default" NOT NULL, "url" varchar(1024) COLLATE "pg_catalog"."default" NOT NULL,
"ext_name" varchar(63) COLLATE "pg_catalog"."default", "type" varchar(64) COLLATE "pg_catalog"."default",
"mime_type" varchar(63) COLLATE "pg_catalog"."default",
"size" int4 NOT NULL, "size" int4 NOT NULL,
"creator" varchar(64) COLLATE "pg_catalog"."default", "creator" varchar(64) COLLATE "pg_catalog"."default",
"create_time" timestamp(6) NOT NULL, "create_time" timestamp(6) NOT NULL,
@ -1732,8 +1731,7 @@ COMMENT ON COLUMN "infra_file"."id" IS '文件编号';
COMMENT ON COLUMN "infra_file"."config_id" IS ''; COMMENT ON COLUMN "infra_file"."config_id" IS '';
COMMENT ON COLUMN "infra_file"."path" IS ''; COMMENT ON COLUMN "infra_file"."path" IS '';
COMMENT ON COLUMN "infra_file"."url" IS ' URL'; COMMENT ON COLUMN "infra_file"."url" IS ' URL';
COMMENT ON COLUMN "infra_file"."ext_name" IS ''; COMMENT ON COLUMN "infra_file"."type" IS 'MIME';
COMMENT ON COLUMN "infra_file"."mime_type" IS 'MIME';
COMMENT ON COLUMN "infra_file"."size" IS ''; COMMENT ON COLUMN "infra_file"."size" IS '';
COMMENT ON COLUMN "infra_file"."creator" IS ''; COMMENT ON COLUMN "infra_file"."creator" IS '';
COMMENT ON COLUMN "infra_file"."create_time" IS ''; COMMENT ON COLUMN "infra_file"."create_time" IS '';

View File

@ -2634,8 +2634,7 @@ CREATE TABLE [dbo].[infra_file] (
[config_id] bigint NULL, [config_id] bigint NULL,
[path] nvarchar(512) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL, [path] nvarchar(512) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[url] nvarchar(1024) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL, [url] nvarchar(1024) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[ext_name] nvarchar(63) COLLATE SQL_Latin1_General_CP1_CI_AS NULL, [type] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[mime_type] nvarchar(63) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[size] int NOT NULL, [size] int NOT NULL,
[creator] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL, [creator] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[create_time] datetime2(7) NOT NULL, [create_time] datetime2(7) NOT NULL,
@ -2677,18 +2676,11 @@ EXEC sp_addextendedproperty
'COLUMN', N'url' 'COLUMN', N'url'
GO GO
EXEC sp_addextendedproperty
'MS_Description', N'',
'SCHEMA', N'dbo',
'TABLE', N'infra_file',
'COLUMN', N'ext_name'
GO
EXEC sp_addextendedproperty EXEC sp_addextendedproperty
'MS_Description', N'MIME', 'MS_Description', N'MIME',
'SCHEMA', N'dbo', 'SCHEMA', N'dbo',
'TABLE', N'infra_file', 'TABLE', N'infra_file',
'COLUMN', N'mime_type' 'COLUMN', N'type'
GO GO
EXEC sp_addextendedproperty EXEC sp_addextendedproperty