diff --git a/diboot-file-starter/src/main/resources/META-INF/sql/init-file-mariadb.sql b/diboot-file-starter/src/main/resources/META-INF/sql/init-file-mariadb.sql index 4ab9137..e79d17b 100644 --- a/diboot-file-starter/src/main/resources/META-INF/sql/init-file-mariadb.sql +++ b/diboot-file-starter/src/main/resources/META-INF/sql/init-file-mariadb.sql @@ -2,7 +2,7 @@ CREATE TABLE upload_file ( uuid varchar(32) NOT NULL COMMENT '编号' primary key, rel_obj_type varchar(50) DEFAULT NULL COMMENT '关联对象类', - rel_obj_id bigint DEFAULT NULL COMMENT '关联对象ID', + rel_obj_id varchar(32) DEFAULT NULL COMMENT '关联对象ID', rel_obj_field varchar(50) DEFAULT NULL COMMENT '关联对象属性名称', file_name varchar(100) NOT NULL COMMENT '文件名', storage_path varchar(200) NOT NULL COMMENT '存储路径', diff --git a/diboot-file-starter/src/main/resources/META-INF/sql/init-file-mysql.sql b/diboot-file-starter/src/main/resources/META-INF/sql/init-file-mysql.sql index b557670..31b1751 100644 --- a/diboot-file-starter/src/main/resources/META-INF/sql/init-file-mysql.sql +++ b/diboot-file-starter/src/main/resources/META-INF/sql/init-file-mysql.sql @@ -2,7 +2,7 @@ CREATE TABLE upload_file ( uuid varchar(32) NOT NULL COMMENT '编号' primary key, rel_obj_type varchar(50) DEFAULT NULL COMMENT '关联对象类', - rel_obj_id bigint DEFAULT NULL COMMENT '关联对象ID', + rel_obj_id varchar(32) DEFAULT NULL COMMENT '关联对象ID', rel_obj_field varchar(50) DEFAULT NULL COMMENT '关联对象属性名称', file_name varchar(100) NOT NULL COMMENT '文件名', storage_path varchar(200) NOT NULL COMMENT '存储路径', diff --git a/diboot-file-starter/src/main/resources/META-INF/sql/init-file-oracle.sql b/diboot-file-starter/src/main/resources/META-INF/sql/init-file-oracle.sql index 4d411cd..7bab279 100644 --- a/diboot-file-starter/src/main/resources/META-INF/sql/init-file-oracle.sql +++ b/diboot-file-starter/src/main/resources/META-INF/sql/init-file-oracle.sql @@ -2,7 +2,7 @@ CREATE TABLE ${SCHEMA}.upload_file ( uuid VARCHAR2(32) NOT NULL, rel_obj_type VARCHAR2(50), - rel_obj_id NUMBER(20), + rel_obj_id VARCHAR2(32), rel_obj_field VARCHAR2(50), file_name VARCHAR2(100) NOT NULL, storage_path VARCHAR2(200) NOT NULL, diff --git a/diboot-file-starter/src/main/resources/META-INF/sql/init-file-postgresql.sql b/diboot-file-starter/src/main/resources/META-INF/sql/init-file-postgresql.sql index 76ed7e4..755a8dd 100644 --- a/diboot-file-starter/src/main/resources/META-INF/sql/init-file-postgresql.sql +++ b/diboot-file-starter/src/main/resources/META-INF/sql/init-file-postgresql.sql @@ -2,7 +2,7 @@ CREATE TABLE upload_file ( uuid varchar(32) NOT NULL, rel_obj_type varchar(50), - rel_obj_id bigint, + rel_obj_id varchar(32), rel_obj_field varchar(50), file_name varchar(100) NOT NULL, storage_path varchar(200) NOT NULL, diff --git a/diboot-file-starter/src/main/resources/META-INF/sql/init-file-sqlserver.sql b/diboot-file-starter/src/main/resources/META-INF/sql/init-file-sqlserver.sql index 54ce49b..7d0be41 100644 --- a/diboot-file-starter/src/main/resources/META-INF/sql/init-file-sqlserver.sql +++ b/diboot-file-starter/src/main/resources/META-INF/sql/init-file-sqlserver.sql @@ -2,7 +2,7 @@ CREATE TABLE ${SCHEMA}.upload_file ( uuid varchar(32) NOT NULL, rel_obj_type varchar(50), - rel_obj_id bigint, + rel_obj_id varchar(32), rel_obj_field varchar(50), file_name varchar(100) NOT NULL, storage_path varchar(200) NOT NULL,