diff --git a/resources/sql/patches/006.repository.sql b/resources/sql/patches/006.repository.sql index 4f1e83f948..0b95ef8280 100644 --- a/resources/sql/patches/006.repository.sql +++ b/resources/sql/patches/006.repository.sql @@ -9,7 +9,7 @@ create table phabricator_repository.repository_commitdata ( ALTER TABLE phabricator_worker.worker_task drop priority; ALTER TABLE phabricator_worker.worker_task drop key leaseOwner; -ALTER TABLE phabricator_worker.worker_task drop key (leaseOwner(16)); +ALTER TABLE phabricator_worker.worker_task add key (leaseOwner(16)); create table phabricator_repository.repository_path ( id int unsigned not null auto_increment primary key, @@ -41,7 +41,7 @@ create table phabricator_repository.repository_filesystem ( primary key (repositoryID, parentID, svnCommit, pathID) ); -alter table repository_filesystem add key (repositoryID, svnCommit); +alter table phabricator_repository.repository_filesystem add key (repositoryID, svnCommit); truncate phabricator_repository.repository_commit; alter table phabricator_repository.repository_commit @@ -53,4 +53,4 @@ alter table phabricator_repository.repository_commit add key (repositoryID, epoch); alter table phabricator_repository.repository_filesystem - add key (repositoryID, pathID, svnCommit); \ No newline at end of file + add key (repositoryID, pathID, svnCommit);