Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F101067035
20190215.daemons.01.dropdataid.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Feb 5, 09:54
Size
533 B
Mime Type
text/x-php
Expires
Fri, Feb 7, 09:54 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
24085202
Attached To
rPH Phabricator
20190215.daemons.01.dropdataid.php
View Options
<?php
// See T6615. We're about to change the nullability on the "dataID" column,
// but it may have a UNIQUE KEY on it. Make sure we get rid of this key first
// so we don't run into trouble.
// There's no "IF EXISTS" modifier for "ALTER TABLE" so run this as a PHP patch
// instead of an SQL patch.
$table
=
new
PhabricatorWorkerActiveTask
();
$conn
=
$table
->
establishConnection
(
'w'
);
try
{
queryfx
(
$conn
,
'ALTER TABLE %R DROP KEY %T'
,
$table
,
'dataID'
);
}
catch
(
AphrontQueryException
$ex
)
{
// Ignore.
}
Event Timeline
Log In to Comment