added alert flag and variation flag
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<?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'");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user