2012-04-30 07:53:53 -07:00
|
|
|
create table {$NAMESPACE}_repository.repository_commit (
|
2011-03-06 22:29:22 -08: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 07:53:53 -07:00
|
|
|
|
|
|
|
create table {$NAMESPACE}_timeline.timeline_event (
|
2011-03-06 22:29:22 -08:00
|
|
|
id int unsigned not null auto_increment primary key,
|
|
|
|
type char(4) binary not null,
|
|
|
|
key (type, id)
|
|
|
|
);
|
|
|
|
|
2012-04-30 07:53:53 -07:00
|
|
|
create table {$NAMESPACE}_timeline.timeline_eventdata (
|
2011-03-06 22:29:22 -08: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 07:53:53 -07:00
|
|
|
create table {$NAMESPACE}_timeline.timeline_cursor (
|
2011-03-06 22:29:22 -08:00
|
|
|
name varchar(255) not null primary key,
|
|
|
|
position int unsigned not null
|
2014-02-26 12:44:58 -08:00
|
|
|
);
|