fixing add prescription
This commit is contained in:
@@ -27,7 +27,8 @@ return new class extends Migration
|
||||
public function down()
|
||||
{
|
||||
Schema::table('practitioners', function (Blueprint $table) {
|
||||
//
|
||||
$table->dropColumn('str_number');
|
||||
$table->dropColumn('exp_date_str');
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
@@ -27,7 +27,8 @@ return new class extends Migration
|
||||
public function down()
|
||||
{
|
||||
Schema::table('practitioner_roles', function (Blueprint $table) {
|
||||
//
|
||||
$table->dropColumn('sip_number');
|
||||
$table->dropColumn('exp_date_sip');
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('prescriptions', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->foreignId('livechat_id');
|
||||
$table->foreignId('organization_id');
|
||||
$table->string('icd_code');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('prescriptions');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('prescription_items', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->foreignId('prescription_id');
|
||||
$table->foreignId('drug_id');
|
||||
$table->integer('qty');
|
||||
$table->foreignId('unit_id');
|
||||
$table->string('note');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('prescription_items');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('prescription_items', function (Blueprint $table) {
|
||||
$table->string('signa');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('prescription_items', function (Blueprint $table) {
|
||||
$table->dropColumn('signa');
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user