fix 修复 oracle postgres 数据库日志表索引创建错误

feature/model
疯狂的狮子li 2 years ago
parent 1ed1752f67
commit ae21e0c3d0

@ -654,9 +654,9 @@ create table sys_oper_log (
); );
alter table sys_oper_log add constraint pk_sys_oper_log primary key (oper_id); alter table sys_oper_log add constraint pk_sys_oper_log primary key (oper_id);
create unique index idx_sys_oper_log_bt on sys_oper_log (business_type); create index idx_sys_oper_log_bt on sys_oper_log (business_type);
create unique index idx_sys_oper_log_s on sys_oper_log (status); create index idx_sys_oper_log_s on sys_oper_log (status);
create unique index idx_sys_oper_log_ot on sys_oper_log (oper_time); create index idx_sys_oper_log_ot on sys_oper_log (oper_time);
comment on table sys_oper_log is '操作日志记录'; comment on table sys_oper_log is '操作日志记录';
comment on column sys_oper_log.oper_id is '日志主键'; comment on column sys_oper_log.oper_id is '日志主键';
@ -854,8 +854,8 @@ create table sys_logininfor (
); );
alter table sys_logininfor add constraint pk_sys_logininfor primary key (info_id); alter table sys_logininfor add constraint pk_sys_logininfor primary key (info_id);
create unique index idx_sys_logininfor_s on sys_logininfor (status); create index idx_sys_logininfor_s on sys_logininfor (status);
create unique index idx_sys_logininfor_lt on sys_logininfor (login_time); create index idx_sys_logininfor_lt on sys_logininfor (login_time);
comment on table sys_logininfor is '系统访问记录'; comment on table sys_logininfor is '系统访问记录';
comment on column sys_logininfor.info_id is '访问ID'; comment on column sys_logininfor.info_id is '访问ID';

@ -671,9 +671,9 @@ create table if not exists sys_oper_log
constraint sys_oper_log_pk primary key (oper_id) constraint sys_oper_log_pk primary key (oper_id)
); );
create unique index idx_sys_oper_log_bt ON sys_oper_log (business_type); create index idx_sys_oper_log_bt ON sys_oper_log (business_type);
create unique index idx_sys_oper_log_s ON sys_oper_log (status); create index idx_sys_oper_log_s ON sys_oper_log (status);
create unique index idx_sys_oper_log_ot ON sys_oper_log (oper_time); create index idx_sys_oper_log_ot ON sys_oper_log (oper_time);
comment on table sys_oper_log is '操作日志记录'; comment on table sys_oper_log is '操作日志记录';
comment on column sys_oper_log.oper_id is '日志主键'; comment on column sys_oper_log.oper_id is '日志主键';
@ -877,8 +877,8 @@ create table if not exists sys_logininfor
constraint sys_logininfor_pk primary key (info_id) constraint sys_logininfor_pk primary key (info_id)
); );
create unique index idx_sys_logininfor_s ON sys_logininfor (status); create index idx_sys_logininfor_s ON sys_logininfor (status);
create unique index idx_sys_logininfor_lt ON sys_logininfor (login_time); create index idx_sys_logininfor_lt ON sys_logininfor (login_time);
comment on table sys_logininfor is '系统访问记录'; comment on table sys_logininfor is '系统访问记录';
comment on column sys_logininfor.info_id is '访问ID'; comment on column sys_logininfor.info_id is '访问ID';

Loading…
Cancel
Save