<?php
/**
- * Makes non-critical database adjustments (i.e. everything that is not related
+ * Makes non-critical database adjustments (i.e. everything that is not related
* to sessions).
*
* @author Tim Duesterhus
->length(45),
NotNullVarchar255DatabaseTableColumn::create('status')
->defaultValue('PENDING'),
+ NotNullInt10DatabaseTableColumn::create('lastFetch')
+ ->defaultValue(0)
])
->indices([
DatabaseTablePrimaryIndex::create()
* @package WoltLabSuite\Core\Data\Unfurl\Url
* @since 5.4
*
+ * @property-read int $urlID
* @property-read string $url
* @property-read string $urlHash
* @property-read string $title
* @property-read string $imageHash
* @property-read string $imageUrl
* @property-read string $imageType
+ * @property-read int $lastFetch
*/
class UnfurlUrl extends DatabaseObject
{
'imageType' => $imageType,
'imageUrl' => $imageUrl,
'imageHash' => $imageHash,
+ 'lastFetch' => TIME_NOW,
],
]);
$urlAction->executeAction();
imageUrl TEXT NOT NULL DEFAULT '',
imageType VARCHAR(255) NOT NULL DEFAULT 'NOIMAGE',
imageHash VARCHAR(45) NOT NULL DEFAULT '',
- status VARCHAR(255) NOT NULL DEFAULT 'PENDING'
+ status VARCHAR(255) NOT NULL DEFAULT 'PENDING',
+ lastFetch INT(10) NOT NULL DEFAULT 0
);
DROP TABLE IF EXISTS wcf1_user;