Merge pull request 'Added organizer in visitor entry migration file and model file' (#864) from ranjith-dev into master
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 18s

Reviewed-on: #864
This commit was merged in pull request #864.
This commit is contained in:
2026-07-26 05:14:00 +00:00
2 changed files with 32 additions and 0 deletions

View File

@@ -12,6 +12,7 @@ class VisitorEntry extends Model
protected $fillable = [
'mobile_number',
'organizer',
'register_id',
'name',
'company',

View File

@@ -0,0 +1,31 @@
<?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
{
$sql3 = <<<'SQL'
ALTER TABLE visitor_entries
ADD COLUMN organizer TEXT DEFAULT NULL
SQL;
DB::statement($sql3);
}
/**
* Reverse the migrations.
*/
public function down(): void
{
// Schema::table('visitor_entries', function (Blueprint $table) {
// //
// });
}
};