23 lines
480 B
PHP
23 lines
480 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Phinx\Migration\AbstractMigration;
|
|
|
|
final class EnableAttivaAlertOnExisting extends AbstractMigration
|
|
{
|
|
public function up(): void
|
|
{
|
|
$this->execute("UPDATE `scad_deadlines`
|
|
SET `attiva_alert` = 1
|
|
WHERE `status` = 'active'");
|
|
}
|
|
|
|
public function down(): void
|
|
{
|
|
$this->execute("UPDATE `scad_deadlines`
|
|
SET `attiva_alert` = 0
|
|
WHERE `status` = 'active'");
|
|
}
|
|
}
|