Профиль: своя тема оформления, аватар переехал в attachments
This commit is contained in:
1 parent
bea1fe101a
commit
ac39ea289b
6 files changed
+175
-20
No files matched your search
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Migrations;
|
||||
|
||||
use Rsgrinko\Proton\Database\Migration;
|
||||
use Rsgrinko\Proton\Database\Schema\Blueprint;
|
||||
|
||||
/**
|
||||
* Тема оформления — своя у каждого, не общая настройка приложения. По
|
||||
* умолчанию светлая: тёмную включают в профиле, а не угадывают по системной
|
||||
* настройке браузера — так дизайн панели не расходится с тем, что показали
|
||||
* при согласовании.
|
||||
*/
|
||||
final class AddUserTheme extends Migration
|
||||
{
|
||||
public function up(): void
|
||||
{
|
||||
$this->table('users', function (Blueprint $table): void {
|
||||
$table->string('theme', 5)->default('light');
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
$this->table('users', function (Blueprint $table): void {
|
||||
$table->dropColumn('theme');
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user