2 Commits

Author SHA1 Message Date
351bfb359b 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
2026-07-26 05:14:00 +00:00
dhanabalan
6f5bc9ad38 Added organizer in visitor entry migration file and model file
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 19s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 20s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 17s
Laravel Pint / pint (pull_request) Successful in 2m15s
Laravel Larastan / larastan (pull_request) Failing after 4m3s
2026-07-26 10:43:37 +05:30
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) {
// //
// });
}
};