fix 1.2.4

This commit is contained in:
2026-06-07 23:05:48 +02:00
parent cd10d100ec
commit 4dd4da7f4b
5 changed files with 69 additions and 3 deletions
+3
View File
@@ -197,6 +197,7 @@ CREATE TABLE `gruppo_individuo` (
`gruppo_id` bigint unsigned NOT NULL,
`individuo_id` bigint unsigned NOT NULL,
`ruolo_ids` json DEFAULT NULL,
`ruolo_nel_gruppo` varchar(255) DEFAULT NULL,
`data_adesione` date DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
@@ -511,6 +512,7 @@ CREATE TABLE `eventi` (
`id` bigint unsigned NOT NULL AUTO_INCREMENT,
`tenant_id` bigint unsigned DEFAULT NULL,
`nome_evento` varchar(255) NOT NULL,
`descrizione_evento` text,
`tipo_evento` varchar(255) DEFAULT NULL,
`tipo_recorrenza` enum('singolo','settimanale','mensile','annuale','altro') DEFAULT 'singolo',
`giorno_settimana` tinyint unsigned DEFAULT NULL,
@@ -526,6 +528,7 @@ CREATE TABLE `eventi` (
`luogo_indirizzo` varchar(500) DEFAULT NULL,
`luogo_url_maps` text,
`uid_esterno` varchar(500) DEFAULT NULL,
`is_incontro_gruppo` tinyint(1) NOT NULL DEFAULT '0',
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
@@ -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
{
}
};