tambah field invoice no dan billing no

This commit is contained in:
2024-04-25 17:05:00 +07:00
parent 0b7a8191bf
commit 60af8f21ce
6 changed files with 87 additions and 0 deletions

View File

@@ -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::table('request_logs', function (Blueprint $table) {
$table->string('invoice_no')->after('code')->nullable();
$table->string('billing_no')->after('invoice_no')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('request_logs', function (Blueprint $table) {
$table->dropColumn('invoice_no');
$table->dropColumn('billing_no');
});
}
};