Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F974212
20190215.daemons.01.dropdataid.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
533 B
Referenced Files
None
Subscribers
None
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.
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Wed, Jun 18, 7:43 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
232890
Default Alt Text
20190215.daemons.01.dropdataid.php (533 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment