front end fixes
This commit is contained in:
+26
@@ -0,0 +1,26 @@
|
||||
<?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
|
||||
{
|
||||
if (Schema::hasTable('testimonials') && ! Schema::hasColumn('testimonials', 'content')) {
|
||||
Schema::table('testimonials', function (Blueprint $table): void {
|
||||
$table->text('content')->nullable()->after('company');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
if (Schema::hasTable('testimonials') && Schema::hasColumn('testimonials', 'content')) {
|
||||
Schema::table('testimonials', function (Blueprint $table): void {
|
||||
$table->dropColumn('content');
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user