7d854ffb0a
- Translation system: lang/es/ PHP files (auth, validation, pagination, passwords)
- Rappasoft vendor translations published (lang/vendor/livewire-tables/es/)
- JSON files synced to 391 keys (EN + ES, full parity)
- APP_LOCALE changed to 'es', users.locale column default changed to 'es'
- Language switcher fixed: JS event + window.location.reload() avoids /livewire/update redirect
- SetLocale middleware fallback uses config('app.locale') instead of hardcoded 'en'
- setSortingPillsEnabled(false) on ProjectTable, CompanyTable, UserTable
- Translated 17 blade views: project-map, template-manager, layer-manager,
company-management, phase-list, media-manager, reports-dashboard,
client-projects, layer-upload, project-form, project-map-editor-tab,
admin/users, projects/media, projects/templates, layouts/client
- Navigation 'Empresas' link uses __('Companies')
- Fixed typo key 'Fases and layers' -> 'Phases and layers'
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
58 lines
1.5 KiB
PHP
58 lines
1.5 KiB
PHP
<?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::create('issues', function (Blueprint $table) {
|
|
$table->id();
|
|
|
|
$table->foreignId('project_id')
|
|
->constrained('projects')
|
|
->cascadeOnDelete();
|
|
|
|
$table->foreignId('feature_id')
|
|
->nullable()
|
|
->constrained('features')
|
|
->nullOnDelete();
|
|
|
|
$table->foreignId('inspection_id')
|
|
->nullable()
|
|
->constrained('inspections')
|
|
->nullOnDelete();
|
|
|
|
$table->string('title');
|
|
$table->text('description')->nullable();
|
|
|
|
$table->enum('status', ['open', 'in_review', 'resolved', 'closed'])
|
|
->default('open');
|
|
|
|
$table->enum('priority', ['low', 'medium', 'high', 'critical'])
|
|
->default('medium');
|
|
|
|
$table->foreignId('reported_by')
|
|
->constrained('users');
|
|
|
|
$table->foreignId('assigned_to')
|
|
->nullable()
|
|
->constrained('users')
|
|
->nullOnDelete();
|
|
|
|
$table->timestamp('resolved_at')->nullable();
|
|
$table->text('resolution_notes')->nullable();
|
|
|
|
$table->timestamps();
|
|
$table->softDeletes();
|
|
});
|
|
}
|
|
|
|
public function down(): void
|
|
{
|
|
Schema::dropIfExists('issues');
|
|
}
|
|
};
|