Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F1625245
20180828.phriction.06.c.documentid.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
523 B
Referenced Files
None
Subscribers
None
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.
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Wed, Jul 16, 5:56 PM (1 d, 19 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
366708
Default Alt Text
20180828.phriction.06.c.documentid.php (523 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment