add nomor_pemesan

auth
Zelda Ababil 2024-01-20 23:44:23 +07:00
parent 2e72fdfbbd
commit d3620f71b5
1 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,28 @@
<?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
{
Schema::table('pesanans', function (Blueprint $table) {
$table->string('nomor_pemesan')->nullable()->after('nama_pemesan');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('pesanans', function (Blueprint $table) {
$table->dropColumn('nomor_pemesan');
});
}
};