AspireSync/migrations/Version20250119175506.php
Chuck Adams f065b6fda1
new timestamp filtering options for sync:meta:fetch (#43)
* feat: add 'checked' column as unconditionally updated timestamp

* feat: switch filters to absolute timestamps, add --skip-checked-after

* feat: add --limit option

* fix: touch resources when checked

* style: make fix

* fix: properly handle null limit
2025-01-25 14:29:03 -07:00

28 lines
711 B
PHP

<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20250119175506 extends AbstractMigration
{
public function getDescription(): string
{
return 'Add checked column to sync table';
}
public function up(Schema $schema): void
{
$this->addSql('alter table sync add checked int not null default 0');
$this->addSql('alter table sync alter column checked drop default');
$this->addSql('create index idx_checked on sync (checked)');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE sync DROP checked');
}
}