fix 1.2.4
This commit is contained in:
+27
@@ -0,0 +1,27 @@
|
||||
<?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::hasColumn('eventi', 'descrizione_evento')) {
|
||||
Schema::table('eventi', function (Blueprint $table) {
|
||||
$table->text('descrizione_evento')->nullable()->after('nome_evento');
|
||||
});
|
||||
}
|
||||
|
||||
if (!Schema::hasColumn('eventi', 'is_incontro_gruppo')) {
|
||||
Schema::table('eventi', function (Blueprint $table) {
|
||||
$table->boolean('is_incontro_gruppo')->default(false)->after('uid_esterno');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user