mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-18 11:30:55 +01:00
Drop uniqueness constraint on PushEvent request ID
Summary: See <https://discourse.phabricator-community.org/t/pushing-to-mercurial-repository-fails/1275/1>. Mercurial may invoke hooks multiple times per push. Test Plan: Pushed to Mercurial, saw key constraint failure. Differential Revision: https://secure.phabricator.com/D19257
This commit is contained in:
parent
bba1b185f8
commit
f583406ba9
2 changed files with 3 additions and 2 deletions
2
resources/sql/autopatches/20180326.lock.03.nonunique.sql
Normal file
2
resources/sql/autopatches/20180326.lock.03.nonunique.sql
Normal file
|
@ -0,0 +1,2 @@
|
|||
ALTER TABLE {$NAMESPACE}_repository.repository_pushevent
|
||||
DROP KEY `key_request`;
|
|
@ -46,9 +46,8 @@ final class PhabricatorRepositoryPushEvent
|
|||
'key_repository' => array(
|
||||
'columns' => array('repositoryPHID'),
|
||||
),
|
||||
'key_request' => array(
|
||||
'key_identifier' => array(
|
||||
'columns' => array('requestIdentifier'),
|
||||
'unique' => true,
|
||||
),
|
||||
),
|
||||
) + parent::getConfiguration();
|
||||
|
|
Loading…
Reference in a new issue