Page MenuHomePhorge

20180828.phriction.06.c.documentid.php
No OneTemporary

Size
523 B
Referenced Files
None
Subscribers
None

20180828.phriction.06.c.documentid.php

<?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

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)

Event Timeline