You've already forked Atomcms-edit
Fix remaining issues: pagination, throttle, i18n, config defaults, indexes
- Add pagination to ShopController (50 per page)
- Add throttle:3,10 to radio application store route
- Replace mixed Dutch/English labels in RadioWizardController (English only)
- Replace Dutch error messages in RadioController and RadioSetupController
- Add config('habbo.defaults.avatar_look') for SocialAuthController
- Remove hardcoded default stream URL from RadioSetupController
- Add database indexes for radio_listener_points.earned_at and bans.ip
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
<?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('radio_listener_points', function (Blueprint $table) {
|
||||
$table->index(['earned_at', 'user_id', 'points'], 'idx_listener_points_earned');
|
||||
});
|
||||
|
||||
Schema::table('bans', function (Blueprint $table) {
|
||||
$table->index('ip', 'idx_bans_ip');
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('radio_listener_points', function (Blueprint $table) {
|
||||
$table->dropIndex('idx_listener_points_earned');
|
||||
});
|
||||
|
||||
Schema::table('bans', function (Blueprint $table) {
|
||||
$table->dropIndex('idx_bans_ip');
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user