added prefernce business overview
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
use Phinx\Migration\AbstractMigration;
|
||||
|
||||
/**
|
||||
* Preferenze di interfaccia per utente: ordine, larghezza e visibilità dei riquadri nelle pagine.
|
||||
*/
|
||||
final class CreateUserUiPrefs extends AbstractMigration
|
||||
{
|
||||
public function change(): void
|
||||
{
|
||||
$this->table('user_ui_prefs', ['comment' => 'Layout pagine personalizzato per utente'])
|
||||
->addColumn('user_id', 'integer', ['signed' => false])
|
||||
->addColumn('page', 'string', ['limit' => 50, 'comment' => 'chiave pagina, es. sales_orders_stats'])
|
||||
->addColumn('layout', 'text', ['null' => true, 'comment' => 'JSON {order, hidden, sizes}'])
|
||||
->addColumn('updated_at', 'datetime', ['null' => true])
|
||||
->addIndex(['user_id', 'page'], ['unique' => true])
|
||||
->create();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user