Page MenuHomePhorge

20200222.xident.02.dropkey.php
No OneTemporary

Size
548 B
Referenced Files
None
Subscribers
None

20200222.xident.02.dropkey.php

<?php
// See T13493. This table previously had a UNIQUE KEY on "<accountType,
// accountDomain, accountID>", which is obsolete. The application now violates
// this key, so make sure it gets dropped.
// There's no "IF EXISTS" modifier for "ALTER TABLE" so run this as a PHP patch
// instead of an SQL patch.
$table = new PhabricatorExternalAccount();
$conn = $table->establishConnection('w');
try {
queryfx(
$conn,
'ALTER TABLE %R DROP KEY %T',
$table,
'account_details');
} catch (AphrontQueryException $ex) {
// Ignore.
}

File Metadata

Mime Type
text/x-php
Expires
Mon, May 12, 6:23 PM (1 d, 20 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
125867
Default Alt Text
20200222.xident.02.dropkey.php (548 B)

Event Timeline