Initial commit - Physiotherapy Clinic Management System
This commit is contained in:
commit
dbb326f2cc
300 files changed
+144285
No files matched your search
@@ -0,0 +1,25 @@
|
||||
<?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
|
||||
{
|
||||
Schema::table('patients', function (Blueprint $table) {
|
||||
$table->string('whatsapp')->nullable()->after('phone');
|
||||
$table->string('national_id')->nullable()->after('whatsapp');
|
||||
$table->string('referral_source')->nullable()->after('national_id');
|
||||
$table->enum('status', ['active', 'inactive'])->default('active')->after('notes');
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('patients', function (Blueprint $table) {
|
||||
$table->dropColumn(['whatsapp', 'national_id', 'referral_source', 'status']);
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in new issue
Block a user