2012-04-30 16:53:53 +02:00
|
|
|
create table {$NAMESPACE}_repository.repository_commit (
|
2011-03-07 07:29:22 +01:00
|
|
|
id int unsigned not null auto_increment primary key,
|
|
|
|
repositoryPHID varchar(64) binary not null,
|
|
|
|
phid varchar(64) binary not null,
|
|
|
|
commitIdentifier varchar(40) binary not null,
|
|
|
|
epoch int unsigned not null,
|
|
|
|
unique key (phid),
|
|
|
|
unique key (repositoryPHID, commitIdentifier)
|
|
|
|
);
|
|
|
|
|
2012-04-30 16:53:53 +02:00
|
|
|
|
|
|
|
create table {$NAMESPACE}_timeline.timeline_event (
|
2011-03-07 07:29:22 +01:00
|
|
|
id int unsigned not null auto_increment primary key,
|
|
|
|
type char(4) binary not null,
|
|
|
|
key (type, id)
|
|
|
|
);
|
|
|
|
|
2012-04-30 16:53:53 +02:00
|
|
|
create table {$NAMESPACE}_timeline.timeline_eventdata (
|
2011-03-07 07:29:22 +01:00
|
|
|
id int unsigned not null auto_increment primary key,
|
|
|
|
eventID int unsigned not null,
|
|
|
|
eventData longblob not null,
|
|
|
|
unique key (eventID)
|
|
|
|
);
|
|
|
|
|
2012-04-30 16:53:53 +02:00
|
|
|
create table {$NAMESPACE}_timeline.timeline_cursor (
|
2011-03-07 07:29:22 +01:00
|
|
|
name varchar(255) not null primary key,
|
|
|
|
position int unsigned not null
|
2014-02-26 21:44:58 +01:00
|
|
|
);
|