Add utf8mb4 charset to front workbench tables
This commit is contained in:
@@ -1266,7 +1266,7 @@ create table front_user (
|
||||
unique key uk_front_user_username (username),
|
||||
key idx_front_user_email (email),
|
||||
key idx_front_user_phone (phone)
|
||||
) engine=innodb auto_increment=100 comment='前台用户表';
|
||||
) engine=innodb auto_increment=100 default charset=utf8mb4 comment='前台用户表';
|
||||
|
||||
create table front_project (
|
||||
project_id bigint(20) not null auto_increment comment '前台项目ID',
|
||||
@@ -1288,7 +1288,7 @@ create table front_project (
|
||||
primary key (project_id),
|
||||
key idx_front_project_user_id (user_id),
|
||||
constraint fk_front_project_user foreign key (user_id) references front_user(user_id)
|
||||
) engine=innodb auto_increment=100 comment='前台项目草稿表';
|
||||
) engine=innodb auto_increment=100 default charset=utf8mb4 comment='前台项目草稿表';
|
||||
|
||||
create table front_project_table (
|
||||
table_id bigint(20) not null auto_increment comment '表设计ID',
|
||||
@@ -1312,7 +1312,7 @@ create table front_project_table (
|
||||
unique key uk_front_project_table (project_id, table_name),
|
||||
key idx_front_project_table_project_id (project_id),
|
||||
constraint fk_front_project_table_project foreign key (project_id) references front_project(project_id)
|
||||
) engine=innodb auto_increment=100 comment='前台项目表设计';
|
||||
) engine=innodb auto_increment=100 default charset=utf8mb4 comment='前台项目表设计';
|
||||
|
||||
create table front_project_column (
|
||||
column_id bigint(20) not null auto_increment comment '字段设计ID',
|
||||
@@ -1341,7 +1341,7 @@ create table front_project_column (
|
||||
key idx_front_project_column_table_id (table_id),
|
||||
key idx_front_project_column_project_id (project_id),
|
||||
constraint fk_front_project_column_table foreign key (table_id) references front_project_table(table_id)
|
||||
) engine=innodb auto_increment=100 comment='前台项目字段设计';
|
||||
) engine=innodb auto_increment=100 default charset=utf8mb4 comment='前台项目字段设计';
|
||||
|
||||
create table front_project_generation (
|
||||
generation_id bigint(20) not null auto_increment comment '生成记录ID',
|
||||
@@ -1359,7 +1359,7 @@ create table front_project_generation (
|
||||
create_time datetime default null comment '创建时间',
|
||||
primary key (generation_id),
|
||||
key idx_front_project_generation_project_id (project_id)
|
||||
) engine=innodb auto_increment=100 comment='前台项目生成记录';
|
||||
) engine=innodb auto_increment=100 default charset=utf8mb4 comment='前台项目生成记录';
|
||||
|
||||
create table front_project_file (
|
||||
file_id bigint(20) not null auto_increment comment '文件缓存ID',
|
||||
@@ -1376,6 +1376,6 @@ create table front_project_file (
|
||||
primary key (file_id),
|
||||
key idx_front_project_file_project_id (project_id),
|
||||
key idx_front_project_file_lookup (project_id, template_type, table_id)
|
||||
) engine=innodb auto_increment=100 comment='前台项目预览文件缓存';
|
||||
) engine=innodb auto_increment=100 default charset=utf8mb4 comment='前台项目预览文件缓存';
|
||||
|
||||
SET FOREIGN_KEY_CHECKS = 1;
|
||||
|
||||
@@ -27,7 +27,7 @@ create table front_user (
|
||||
unique key uk_front_user_username (username),
|
||||
key idx_front_user_email (email),
|
||||
key idx_front_user_phone (phone)
|
||||
) engine=innodb auto_increment=100 comment='前台用户表';
|
||||
) engine=innodb auto_increment=100 default charset=utf8mb4 comment='前台用户表';
|
||||
|
||||
create table front_project (
|
||||
project_id bigint(20) not null auto_increment comment '前台项目ID',
|
||||
@@ -49,7 +49,7 @@ create table front_project (
|
||||
primary key (project_id),
|
||||
key idx_front_project_user_id (user_id),
|
||||
constraint fk_front_project_user foreign key (user_id) references front_user(user_id)
|
||||
) engine=innodb auto_increment=100 comment='前台项目草稿表';
|
||||
) engine=innodb auto_increment=100 default charset=utf8mb4 comment='前台项目草稿表';
|
||||
|
||||
create table front_project_table (
|
||||
table_id bigint(20) not null auto_increment comment '表设计ID',
|
||||
@@ -73,7 +73,7 @@ create table front_project_table (
|
||||
unique key uk_front_project_table (project_id, table_name),
|
||||
key idx_front_project_table_project_id (project_id),
|
||||
constraint fk_front_project_table_project foreign key (project_id) references front_project(project_id)
|
||||
) engine=innodb auto_increment=100 comment='前台项目表设计';
|
||||
) engine=innodb auto_increment=100 default charset=utf8mb4 comment='前台项目表设计';
|
||||
|
||||
create table front_project_column (
|
||||
column_id bigint(20) not null auto_increment comment '字段设计ID',
|
||||
@@ -102,7 +102,7 @@ create table front_project_column (
|
||||
key idx_front_project_column_table_id (table_id),
|
||||
key idx_front_project_column_project_id (project_id),
|
||||
constraint fk_front_project_column_table foreign key (table_id) references front_project_table(table_id)
|
||||
) engine=innodb auto_increment=100 comment='前台项目字段设计';
|
||||
) engine=innodb auto_increment=100 default charset=utf8mb4 comment='前台项目字段设计';
|
||||
|
||||
create table front_project_generation (
|
||||
generation_id bigint(20) not null auto_increment comment '生成记录ID',
|
||||
@@ -120,7 +120,7 @@ create table front_project_generation (
|
||||
create_time datetime default null comment '创建时间',
|
||||
primary key (generation_id),
|
||||
key idx_front_project_generation_project_id (project_id)
|
||||
) engine=innodb auto_increment=100 comment='前台项目生成记录';
|
||||
) engine=innodb auto_increment=100 default charset=utf8mb4 comment='前台项目生成记录';
|
||||
|
||||
create table front_project_file (
|
||||
file_id bigint(20) not null auto_increment comment '文件缓存ID',
|
||||
@@ -137,4 +137,4 @@ create table front_project_file (
|
||||
primary key (file_id),
|
||||
key idx_front_project_file_project_id (project_id),
|
||||
key idx_front_project_file_lookup (project_id, template_type, table_id)
|
||||
) engine=innodb auto_increment=100 comment='前台项目预览文件缓存';
|
||||
) engine=innodb auto_increment=100 default charset=utf8mb4 comment='前台项目预览文件缓存';
|
||||
|
||||
Reference in New Issue
Block a user