1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-20 09:18:48 +02:00
phorge-phorge/resources/sql/patches/004.daemonrepos.sql
epriestley 57495c4287 Rough cut of repository tracking
Summary: Basic scaffolding for repository tracking, plus daemon infrastructure
(Timelines, Cursors) and some fixes (memory usage, mysql_connect() junk).

Test Plan: parsed Javelin git commit history via daemon

Reviewers:

CC:
2011-03-06 22:29:22 -08:00

28 lines
No EOL
872 B
SQL

create table phabricator_repository.repository_commit (
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)
);
create database phabricator_timeline;
create table phabricator_timeline.timeline_event (
id int unsigned not null auto_increment primary key,
type char(4) binary not null,
key (type, id)
);
create table phabricator_timeline.timeline_eventdata (
id int unsigned not null auto_increment primary key,
eventID int unsigned not null,
eventData longblob not null,
unique key (eventID)
);
create table phabricator_timeline.timeline_cursor (
name varchar(255) not null primary key,
position int unsigned not null
);