mirror of
https://code.castopod.org/adaures/castopod
synced 2025-04-23 01:01:20 +00:00
28 lines
508 B
PHP
28 lines
508 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Database\Migrations;
|
|
|
|
use CodeIgniter\Database\Migration;
|
|
use Override;
|
|
|
|
/**
|
|
* CodeIgniter 4.5.1 introduces new DataCaster class that breaks deserialization of import queue tasks.
|
|
* This just removes them altogether.
|
|
*/
|
|
class ClearImportQueue extends Migration
|
|
{
|
|
#[Override]
|
|
public function up(): void
|
|
{
|
|
service('settings')->forget('Import.queue');
|
|
}
|
|
|
|
#[Override]
|
|
public function down(): void
|
|
{
|
|
// nothing
|
|
}
|
|
}
|