You've already forked Atomcms-edit
Medium priority fixes: CORS from env, shared HasRadioSettings trait, lazy RconService, validated() fixes, LogoGenerator hardening, DB indexes, user profile consistency, radio rank N+1 fix
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('users', function (Blueprint $table) {
|
||||
$table->index('username', 'idx_users_username');
|
||||
$table->index('mail', 'idx_users_mail');
|
||||
$table->index('ip_current', 'idx_users_ip_current');
|
||||
$table->index('ip_register', 'idx_users_ip_register');
|
||||
});
|
||||
|
||||
Schema::table('camera_web', function (Blueprint $table) {
|
||||
$table->index('visible', 'idx_camera_web_visible');
|
||||
});
|
||||
|
||||
Schema::table('website_shop_articles', function (Blueprint $table) {
|
||||
$table->index('category_id', 'idx_website_shop_articles_category_id');
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('users', function (Blueprint $table) {
|
||||
$table->dropIndex('idx_users_username');
|
||||
$table->dropIndex('idx_users_mail');
|
||||
$table->dropIndex('idx_users_ip_current');
|
||||
$table->dropIndex('idx_users_ip_register');
|
||||
});
|
||||
|
||||
Schema::table('camera_web', function (Blueprint $table) {
|
||||
$table->dropIndex('idx_camera_web_visible');
|
||||
});
|
||||
|
||||
Schema::table('website_shop_articles', function (Blueprint $table) {
|
||||
$table->dropIndex('idx_website_shop_articles_category_id');
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user