added jquery and also fixed fontawsome

This commit is contained in:
Mark Gregory
2026-06-15 15:42:38 +01:00
parent 0b2d7225cc
commit 578a977c59
145 changed files with 82 additions and 8488 deletions
@@ -0,0 +1,48 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
foreach ([
'helpdesk_priorities',
'helpdesk_categories',
'helpdesk_projects',
'helpdesk_teams',
] as $table) {
if (! Schema::hasColumn($table, 'is_default')) {
Schema::table($table, function (Blueprint $table): void {
$table->boolean('is_default')
->default(false)
->after('is_active');
});
}
}
}
/**
* Reverse the migrations.
*/
public function down(): void
{
foreach ([
'helpdesk_priorities',
'helpdesk_categories',
'helpdesk_projects',
'helpdesk_teams',
] as $tableName) {
if (Schema::hasColumn($tableName, 'is_default')) {
Schema::table($tableName, function (Blueprint $table): void {
$table->dropColumn('is_default');
});
}
}
}
};
@@ -0,0 +1,34 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
if (! Schema::hasColumn('companies', 'is_default_helpdesk_company')) {
Schema::table('companies', function (Blueprint $table): void {
$table->boolean('is_default_helpdesk_company')
->default(false)
->after('is_system_company');
});
}
}
/**
* Reverse the migrations.
*/
public function down(): void
{
if (Schema::hasColumn('companies', 'is_default_helpdesk_company')) {
Schema::table('companies', function (Blueprint $table): void {
$table->dropColumn('is_default_helpdesk_company');
});
}
}
};