mirror of
https://code.castopod.org/adaures/castopod
synced 2025-05-14 10:15:46 +00:00
32 lines
689 B
PHP
32 lines
689 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
/**
|
|
* @copyright 2024 Ad Aures
|
|
* @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
|
|
* @link https://castopod.org/
|
|
*/
|
|
|
|
namespace Modules\Fediverse\Migrations;
|
|
|
|
use App\Database\Migrations\BaseMigration;
|
|
use Override;
|
|
|
|
class UpdateActivitiesStatus extends BaseMigration
|
|
{
|
|
#[Override]
|
|
public function up(): void
|
|
{
|
|
$fields = [
|
|
'status' => [
|
|
'type' => 'ENUM',
|
|
'constraint' => ['queued', 'processing', 'delivered', 'failed'],
|
|
'null' => true,
|
|
],
|
|
];
|
|
|
|
$this->forge->modifyColumn('fediverse_activities', $fields);
|
|
}
|
|
}
|