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,23 @@
|
||||
<?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('currencies', function (Blueprint $table) {
|
||||
$table->decimal('exchange_rate_to_base', 15, 6)->default(1.00)->after('decimal_places');
|
||||
$table->boolean('is_base')->default(false)->after('exchange_rate_to_base');
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('currencies', function (Blueprint $table) {
|
||||
$table->dropColumn(['exchange_rate_to_base', 'is_base']);
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in new issue
Block a user