mirror of
https://github.com/lkddi/Xboard.git
synced 2026-04-24 03:57:27 +08:00
feat: optimize settings management and admin functionality
- Add system log cleanup functionality with batch processing - Optimize v2_settings table performance by unifying value storage - Add comprehensive client support list for one-click subscription - Fix QR code subscription links for specific node types - Fix route addition issues in admin management panel - Enhance admin system controller with log management APIs
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
class OptimizeV2SettingsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('v2_settings', function (Blueprint $table) {
|
||||
// 将 value 字段改为 MEDIUMTEXT,支持最大16MB内容
|
||||
$table->mediumText('value')->nullable()->change();
|
||||
// 添加优化索引
|
||||
$table->index('name', 'idx_setting_name');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('v2_settings', function (Blueprint $table) {
|
||||
$table->string('value')->nullable()->change();
|
||||
$table->dropIndex('idx_setting_name');
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user