Customers tax id field

This commit is contained in:
Martin Chevignard
2024-10-04 12:07:29 +02:00
parent dd98df1c77
commit 03b9defeb1
12 changed files with 73 additions and 11 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('customers', function (Blueprint $table) {
$table->string('tax_id')->nullable()->after('github_id');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('customers', function (Blueprint $table) {
$table->dropColumn('tax_id');
});
}
};