Skip to content

Commit ab36e58

Browse files
committed
updated SQL
1 parent ffa5528 commit ab36e58

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

logicaldoc-core/src/main/resources/sql/logicaldoc-core.sql.mariadb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ create table ld_workingtime (ld_userid bigint not null, ld_dayofweek int not nul
121121
ld_hourend int not null, ld_minuteend int not null, ld_label varchar(255), ld_description varchar(1000),
122122
primary key(ld_userid, ld_dayofweek, ld_hourstart, ld_minutestart)) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
123123
create table ld_user_history (ld_id bigint not null, ld_lastmodified datetime not null, ld_creation datetime not null, ld_recordversion bigint not null,
124-
ld_deleted int not null, ld_tenantid bigint not null, ld_userid bigint,
125-
ld_date datetime(3), ld_username varchar(255), ld_event varchar(255), ld_keylabel varchar(255),
124+
ld_deleted int not null, ld_tenantid bigint not null, ld_userid bigint, ld_keylabel varchar(255),
125+
ld_date datetime(3), ld_username varchar(255), ld_event varchar(255),
126126
ld_comment varchar(4000), ld_reason varchar(4000), ld_notified int not null, ld_sessionid varchar(255),
127127
ld_new int, ld_filename varchar(255), ld_userlogin varchar(255), ld_ip varchar(255),
128128
ld_geolocation varchar(255), ld_device varchar(255), ld_author varchar(255),
@@ -165,7 +165,7 @@ create table ld_folder_ext (ld_folderid bigint not null, ld_mandatory int not nu
165165
ld_parent varchar(255), ld_dependson varchar(255), primary key (ld_folderid, ld_name)) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
166166
create table ld_folder_store (ld_folderid bigint not null, ld_nodeid varchar(255) not null, ld_storeid int not null, primary key (ld_folderid, ld_nodeid)) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
167167
create table ld_folder_history (ld_id bigint not null, ld_lastmodified datetime not null, ld_creation datetime not null, ld_recordversion bigint not null,
168-
ld_deleted int not null, ld_tenantid bigint not null, ld_docid bigint, ld_keylabel varchar(255),
168+
ld_deleted int not null, ld_tenantid bigint not null, ld_docid bigint, ld_keylabel varchar(255),
169169
ld_folderid bigint, ld_userid bigint, ld_date datetime(3), ld_username varchar(255),
170170
ld_event varchar(255), ld_comment varchar(4000), ld_reason varchar(4000), ld_version varchar(255), ld_fileversion varchar(10),
171171
ld_path varchar(4000), ld_pathold varchar(4000), ld_notified int not null, ld_sessionid varchar(255),
@@ -247,7 +247,7 @@ create table ld_search (ld_id bigint not null, ld_lastmodified datetime not null
247247
create table ld_apikey (ld_id bigint not null, ld_lastmodified datetime not null, ld_creation datetime not null, ld_recordversion bigint not null,
248248
ld_deleted int not null, ld_tenantid bigint not null, ld_userid bigint not null, ld_lastused datetime, ld_key varchar(255) not null,
249249
ld_name varchar(255) not null, ld_label varchar(255), primary key (ld_id)) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
250-
250+
251251
create table hibernate_sequences (sequence_name varchar(40) NOT NULL, next_val bigint NOT NULL, primary key (sequence_name)) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
252252

253253
alter table ld_document add constraint FK75ED9C0276C86307 foreign key (ld_templateid) references ld_template(ld_id);

0 commit comments

Comments
 (0)