projects
/
hibernate-maven-plugin
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
WIP:site
[hibernate-maven-plugin]
/
src
/
it
/
tutorials-5.0.12
/
schema-envers.sql
1
2
create table EVENTS (
3
id bigint not null,
4
EVENT_DATE timestamp,
5
title varchar(255),
6
primary key (id)
7
);
8
9
create table EVENTS_AUD (
10
id bigint not null,
11
REV integer not null,
12
REVTYPE tinyint,
13
EVENT_DATE timestamp,
14
title varchar(255),
15
primary key (id, REV)
16
);
17
18
create table REVINFO (
19
REV integer generated by default as identity,
20
REVTSTMP bigint,
21
primary key (REV)
22
);
23
24
alter table EVENTS_AUD
25
add constraint FK5cembm6xahf542q8e4h0pq2t1
26
foreign key (REV)
27
references REVINFO;