added jquery and also fixed fontawsome
This commit is contained in:
+48
@@ -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');
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
+34
@@ -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');
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user