Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F99052550
20180828.phriction.06.c.documentid.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
Sat, Jan 18, 18:09
Size
523 B
Mime Type
text/x-php
Expires
Mon, Jan 20, 18:09 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23697956
Attached To
rPH Phabricator
20180828.phriction.06.c.documentid.php
View Options
<?php
// See T13193. We're about to drop the "documentID" column, which is part of
// a UNIQUE KEY. In MariaDB, we must first drop the "documentID" key or we get
// into deep trouble.
// There's no "IF EXISTS" modifier for "ALTER TABLE" so run this as a PHP patch
// instead of an SQL patch.
$table
=
new
PhrictionContent
();
$conn
=
$table
->
establishConnection
(
'w'
);
try
{
queryfx
(
$conn
,
'ALTER TABLE %T DROP KEY documentID'
,
$table
->
getTableName
());
}
catch
(
AphrontQueryException
$ex
)
{
// Ignore.
}
Event Timeline
Log In to Comment