notification settings and mail

This commit is contained in:
2026-08-14 07:54:17 +02:00
parent 41c4838dab
commit 1dbb93b139
4 changed files with 462 additions and 8 deletions
@@ -0,0 +1,28 @@
<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class AddNotificationPreferencesToAuthUsers extends AbstractMigration
{
public function change(): void
{
$table = $this->table('auth_users');
$table
->addColumn('notify_email', 'boolean', [
'default' => true,
'null' => false,
'after' => 'announcements_last_read_at',
'comment' => 'Preferenza notifiche via email',
])
->addColumn('notify_webapp', 'boolean', [
'default' => true,
'null' => false,
'after' => 'notify_email',
'comment' => 'Preferenza notifiche in webapp',
])
->update();
}
}